<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ShipCAD: ShipCADlib/shipcadmodel.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ShipCAD
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_f0b6ef187c5b1483641b038f81654ac4.html">ShipCADlib</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">shipcadmodel.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="shipcadmodel_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*##############################################################################################</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *    ShipCAD                                                                                  *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *    Copyright 2015, by Greg Green &lt;ggreen@bit-builder.com&gt;                                   *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *    Original Copyright header below                                                          *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *    This code is distributed as part of the FREE!ship project. FREE!ship is an               *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *    open source surface-modelling program based on subdivision surfaces and intended for     *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *    designing ships.                                                                         *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *    Copyright © 2005, by Martijn van Engeland                                                *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *    e-mail                  : Info@FREEship.org                                              *</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *    FREE!ship project page  : https://sourceforge.net/projects/freeship                      *</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *    FREE!ship homepage      : www.FREEship.org                                               *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *    This program is free software; you can redistribute it and/or modify it under            *</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *    the terms of the GNU General Public License as published by the                          *</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *    Free Software Foundation; either version 2 of the License, or (at your option)           *</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *    any later version.                                                                       *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *    This program is distributed in the hope that it will be useful, but WITHOUT ANY          *</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A          *</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *    PARTICULAR PURPOSE. See the GNU General Public License for more details.                 *</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> *    You should have received a copy of the GNU General Public License along with             *</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> *    this program; if not, write to the Free Software Foundation, Inc.,                       *</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *    59 Temple Place, Suite 330, Boston, MA 02111-1307 USA                                    *</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> *#############################################################################################*/</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &lt;stdexcept&gt;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;cstring&gt;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &lt;Eigen/Dense&gt;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="shipcadmodel_8h.html">shipcadmodel.h</a>&quot;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="filebuffer_8h.html">filebuffer.h</a>&quot;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="subdivsurface_8h.html">subdivsurface.h</a>&quot;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="undoobject_8h.html">undoobject.h</a>&quot;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="utility_8h.html">utility.h</a>&quot;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="subdivlayer_8h.html">subdivlayer.h</a>&quot;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="subdivface_8h.html">subdivface.h</a>&quot;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="flowline_8h.html">flowline.h</a>&quot;</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="viewport_8h.html">viewport.h</a>&quot;</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="subdivpoint_8h.html">subdivpoint.h</a>&quot;</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="subdivedge_8h.html">subdivedge.h</a>&quot;</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="pointgrid_8h.html">pointgrid.h</a>&quot;</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="exception_8h.html">exception.h</a>&quot;</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespaceShipCAD.html">ShipCAD</a>;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespaceEigen.html">Eigen</a>;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#abede72e53058c2ecf8dc2c4b2a7c8014">   53</a></span>&#160;ShipCADModel::ShipCADModel()</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    : _precision(<a class="code" href="namespaceShipCAD.html#ae13c7e36dfb1e2300741a631041cd915a493cc0c95c59b2a1a0ca04b7a337295b">fpLow</a>), _file_version(<a class="code" href="namespaceShipCAD.html#aa3415e1acf9bdb19e24f31f5138d6a60">k_current_version</a>), _edit_mode(<a class="code" href="namespaceShipCAD.html#a66144e3f3a53da01f51c9bdb94fcae31a756e1b357bd617f738749df02e51be25">emSelectItems</a>), _prefs(this),</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;      _active_control_point(0), _file_changed(false), _filename(<span class="stringliteral">&quot;&quot;</span>),</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;      _stations(true), _waterlines(true), _buttocks(true), _diagonals(true),</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;      _markers(true), _vis(this), _filename_set(false), _currently_moving(false),</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;      _stop_asking_for_file_version(false), _settings(this), _calculations(true),</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;      _design_hydrostatics(0), _undo_pos(0), _prev_undo_pos(-1), _flowlines(true),</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;      _background_images(true)</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;{</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    memset(&amp;_delft_resistance, 0, <span class="keyword">sizeof</span>(<a class="code" href="structShipCAD_1_1DelftSeriesResistance.html">DelftSeriesResistance</a>));</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    memset(&amp;_kaper_resistance, 0, <span class="keyword">sizeof</span>(<a class="code" href="structShipCAD_1_1KAPERResistance.html">KAPERResistance</a>));</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;}</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#ad2f9dfd32667e9ac690de184b7e576f1">   66</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#ad2f9dfd32667e9ac690de184b7e576f1">ShipCADModel::clear</a>()</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;{</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    _precision = <a class="code" href="namespaceShipCAD.html#ae13c7e36dfb1e2300741a631041cd915a493cc0c95c59b2a1a0ca04b7a337295b">fpLow</a>;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    _file_version = <a class="code" href="namespaceShipCAD.html#aa3415e1acf9bdb19e24f31f5138d6a60">k_current_version</a>;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    _file_changed = <span class="keyword">false</span>;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a80ab3bd6372a8465d69f71034a353e06">clear</a>();</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    _filename = ShipCADModel::tr(<span class="stringliteral">&quot;New model&quot;</span>);</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    _vis.<a class="code" href="classShipCAD_1_1Visibility.html#af3e925196f71caa8e8ddabd2e7210bbf">clear</a>();</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    _edit_mode = <a class="code" href="namespaceShipCAD.html#a66144e3f3a53da01f51c9bdb94fcae31a756e1b357bd617f738749df02e51be25">emSelectItems</a>;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    _active_control_point = 0;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    _markers.<a class="code" href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">clear</a>();</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    _stations.<a class="code" href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">clear</a>();</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    _buttocks.<a class="code" href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">clear</a>();</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    _waterlines.<a class="code" href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">clear</a>();</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    _diagonals.<a class="code" href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">clear</a>();</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    _calculations.<a class="code" href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">clear</a>();</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    _settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#a9e0ce44e6aea8e57608baee2a3b05827">clear</a>();</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    _filename_set = <span class="keyword">false</span>;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    _stop_asking_for_file_version = <span class="keyword">false</span>;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    _selected_flowlines.clear();</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    _flowlines.<a class="code" href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">clear</a>();</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    _background_images.<a class="code" href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">clear</a>();</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;}</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="comment">// FreeShipUnit.pas:11564</span></div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a89923c0700e57eebf85332cfc9180765">   91</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a89923c0700e57eebf85332cfc9180765">ShipCADModel::buildValidFrameTable</a>(<a class="code" href="classPointerVector.html">SplineVector</a>&amp; dest, <span class="keywordtype">bool</span> close_at_deck)</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;{</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="keywordtype">float</span> min = 0;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <a class="code" href="classPointerVector.html">IntersectionVector</a>&amp; stations = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a86da3ca66e90403ead21ccc67f584c52">getStations</a>();</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;stations.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); ++i) {</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        <a class="code" href="classShipCAD_1_1Intersection.html">Intersection</a>* intersection = stations.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i);</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <span class="keywordflow">if</span> (!intersection-&gt;<a class="code" href="classShipCAD_1_1Entity.html#ab2f54a1745c95aa0871a8c57c114809e">isBuild</a>())</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;            intersection-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#aed30bdca43037f72b85c4d53e234fd6c">rebuild</a>();</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <a class="code" href="classPointerVector.html">SplineVector</a> tmp(<span class="keyword">false</span>);</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        <a class="code" href="classPointerVector.html">SplineVector</a>&amp; splines = intersection-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#a0092acbb149bb6a5c2e1f9a4b300c2da">getSplines</a>();</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;splines.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); j++) {</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;            <a class="code" href="classShipCAD_1_1Spline.html">Spline</a>* spline = <span class="keyword">new</span> <a class="code" href="classShipCAD_1_1Spline.html">Spline</a>(*(splines.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(j)));</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;            <span class="comment">// quick check to determine if the frame runs from bottom to top</span></div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;            <span class="keywordflow">if</span> (spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa62cf7afa6461bafce7227ec31875219">value</a>(0.0).z() &gt; spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa62cf7afa6461bafce7227ec31875219">value</a>(1.0).z()) {</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;                <span class="comment">// if not reverse the points</span></div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;                spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#a26293a4ee636c2b968c45731425d5c94">invert_direction</a>();</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;            }</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;            tmp.<a class="code" href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">add</a>(spline);</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        }</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        <span class="comment">// take all segments and join into one</span></div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <span class="keywordflow">if</span> (tmp.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>() &gt; 1)</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;            <a class="code" href="namespaceShipCAD.html#a2eddf75f0e29363ab81a3fb0e0211848">JoinSplineSegments</a>(0.01, <span class="keyword">true</span>, tmp);</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;tmp.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); j++) {</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;            <a class="code" href="classShipCAD_1_1Spline.html">Spline</a>* spline = tmp.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(j);</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;            <span class="keywordflow">if</span> (close_at_deck) {</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;                <span class="keywordflow">if</span> (spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#a3e3e7413b8ca8383a93f4770931ed6ed">getLastPoint</a>().y() != 0.0) {</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;                    QVector3D p = spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#a3e3e7413b8ca8383a93f4770931ed6ed">getLastPoint</a>();</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;                    p.setY(0.0);</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;                    spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#ac3d9f4514573be91b316413bf062791a">add</a>(p);</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                    spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#ad4f075e2e8f1d3ac7c2d22b5be75bbad">setKnuckle</a>(spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa15d52dbfa55ec3b1ec272104a45ebd5">numberOfPoints</a>() - 2, <span class="keyword">true</span>);</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;                }</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;            }</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;            dest.<a class="code" href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">add</a>(spline);</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;            <span class="keywordflow">if</span> (i == 0)</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;                min = spline-&gt;<a class="code" href="classShipCAD_1_1Entity.html#a7c4227afa7a356a667224cfba69a24e5">getMin</a>().z();</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (spline-&gt;<a class="code" href="classShipCAD_1_1Entity.html#a7c4227afa7a356a667224cfba69a24e5">getMin</a>().z() &lt; min)</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;                min = spline-&gt;<a class="code" href="classShipCAD_1_1Entity.html#a7c4227afa7a356a667224cfba69a24e5">getMin</a>().z();</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        }</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    }</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="comment">// now shift all stations up or down so that the lowest point</span></div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <span class="comment">// of all stations is on the baseline z=0.0</span></div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="keywordflow">if</span> (min != 0.0) {</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;dest.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++) {</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;            <a class="code" href="classShipCAD_1_1Spline.html">Spline</a>* spline = dest.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i);</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa15d52dbfa55ec3b1ec272104a45ebd5">numberOfPoints</a>(); j++) {</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;                QVector3D p = spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#a04a94537b420a8d19dc5f78526e9a825">getPoint</a>(j);</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;                p.setZ(p.z() - min);</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;                spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#ae02af8d5473f952644ac5103d7beebf2">setPoint</a>(j, p);</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;            }</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        }</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    }</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;}</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="comment">// FreeShipUnit.pas:12648</span></div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a7ab84a738b747c4fcb2c3627e56d4bd0">  145</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a7ab84a738b747c4fcb2c3627e56d4bd0">ShipCADModel::extents</a>(QVector3D&amp; min, QVector3D&amp; max)</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;{</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <span class="keywordflow">if</span> (_surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a6a735e1f8b3fdef0469ead5ed006e2a0">numberOfControlFaces</a>()) {</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        <span class="comment">// save the current model view setting, we temporarily set it to both</span></div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;        <a class="code" href="classShipCAD_1_1TempVarChange.html">TempVarChange&lt;model_view_t&gt;</a> visview = _vis.<a class="code" href="classShipCAD_1_1Visibility.html#a5c794da01fd292a34ceec882678aea63">tempChangeModelView</a>(<a class="code" href="namespaceShipCAD.html#a742f9cd95e62e207769e17467ecd5bb7ad45c94ca5dea7f967d58f9864f49c465">mvBoth</a>);</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        <a class="code" href="classShipCAD_1_1TempVarChange.html">TempVarChange&lt;bool&gt;</a> mirror = _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#abbf1284012e5a2b433dbcf1ac2caaf84">tempChangeMirror</a>(<span class="keyword">true</span>);</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        min = QVector3D(1e6, 1e6, 1e6);</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        max = QVector3D(-1e6, -1e6, -1e6);</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#abc1cf0168290242dfbe5dd0d178fa7cb">extents</a>(min, max);</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;        <span class="keywordflow">if</span> (_vis.<a class="code" href="classShipCAD_1_1Visibility.html#adae35f2eb31f5d468674ab9856a39637">isShowMarkers</a>()) {</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;            <a class="code" href="namespaceShipCAD.html#a880f36455b3b35823ae14bdd62e20b31">MarkerVectorIterator</a> i = _markers.<a class="code" href="classPointerVector.html#a594866129f2e9a3701c1f414ca3299e3">begin</a>();</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;            <span class="keywordflow">for</span> (; i!=_markers.<a class="code" href="classPointerVector.html#a6182f5429c4c98ba2556d40484aab2f9">end</a>(); ++i)</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;                (*i)-&gt;extents(min, max);</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;        }</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;        <span class="keywordflow">if</span> (_surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a994923f432129431b30d6b532059a6ab">numberOfControlPoints</a>() &gt; 1) {</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html">SubdivisionControlPoint</a>* p = _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a534abfeaab8e30436c7ba4f14048472a">getControlPoint</a>(0);</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;            min = p-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a285325115089a1b99be4480bf6079bf1">getCoordinate</a>();</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;            max = p-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a285325115089a1b99be4480bf6079bf1">getCoordinate</a>();</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=1; i&lt;_surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a994923f432129431b30d6b532059a6ab">numberOfControlPoints</a>(); i++)</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;                <a class="code" href="namespaceShipCAD.html#aa5d3fc63603d716d3e24244049e1e510">MinMax</a>(_surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a534abfeaab8e30436c7ba4f14048472a">getControlPoint</a>(i)-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a285325115089a1b99be4480bf6079bf1">getCoordinate</a>(), min, max);</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;            min = QVector3D(-1, -1, -1);</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;            max = QVector3D(1, 1, 1);</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        }</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    }</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;}</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div><div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#ab221977f2a8bd4d51d6ee777be0d7b8a">  173</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#ab221977f2a8bd4d51d6ee777be0d7b8a">ShipCADModel::setBuild</a>(<span class="keywordtype">bool</span> <span class="keyword">set</span>)</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;{</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#aec5073750762d1f8c3ab2107a742f4a5">setBuild</a>(<span class="keyword">set</span>);</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="keywordflow">if</span> (!<span class="keyword">set</span>) {</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1ShipCADModel.html#a86da3ca66e90403ead21ccc67f584c52">getStations</a>().<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++)</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;            <a class="code" href="classShipCAD_1_1ShipCADModel.html#a86da3ca66e90403ead21ccc67f584c52">getStations</a>().<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#a2b496f9ab21c5fc4a7b97a665b24f2b1">setBuild</a>(<span class="keyword">false</span>);</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1ShipCADModel.html#a8908d7adff0b1aa1ed118103c02c5402">getButtocks</a>().<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++)</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;            <a class="code" href="classShipCAD_1_1ShipCADModel.html#a8908d7adff0b1aa1ed118103c02c5402">getButtocks</a>().<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#a2b496f9ab21c5fc4a7b97a665b24f2b1">setBuild</a>(<span class="keyword">false</span>);</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1ShipCADModel.html#a6c147a75fa02e43145de346efb9542fd">getWaterlines</a>().<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++)</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;            <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6c147a75fa02e43145de346efb9542fd">getWaterlines</a>().<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#a2b496f9ab21c5fc4a7b97a665b24f2b1">setBuild</a>(<span class="keyword">false</span>);</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1ShipCADModel.html#a19864f7628c596553f7c89247715b10a">getDiagonals</a>().<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++)</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;            <a class="code" href="classShipCAD_1_1ShipCADModel.html#a19864f7628c596553f7c89247715b10a">getDiagonals</a>().<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#a2b496f9ab21c5fc4a7b97a665b24f2b1">setBuild</a>(<span class="keyword">false</span>);</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1ShipCADModel.html#aafc30dd7d6b9db4ccfc7bf1c4e2b3b11">getHydrostaticCalculations</a>().<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++)</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;            <a class="code" href="classShipCAD_1_1ShipCADModel.html#aafc30dd7d6b9db4ccfc7bf1c4e2b3b11">getHydrostaticCalculations</a>().<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1HydrostaticCalc.html#a0deeafff07f3bb77184df959bbd91266">setCalculated</a>(<span class="keyword">false</span>);</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_flowlines.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++)</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;            _flowlines.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Flowline.html#ad148400a3e53b2368b37c2c7f50ec1b7">setBuild</a>(<span class="keyword">false</span>);</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    }</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;}</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div><div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a1b27573aab3a458f9002a7e4e327736a">  192</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a1b27573aab3a458f9002a7e4e327736a">ShipCADModel::rebuildModel</a>(<span class="keywordtype">bool</span> redo_intersections)</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;{</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <span class="keywordflow">if</span> (redo_intersections)</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#ab221977f2a8bd4d51d6ee777be0d7b8a">setBuild</a>(<span class="keyword">false</span>);</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    <span class="comment">// get preferences settings</span></div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    _prefs.<a class="code" href="classShipCAD_1_1Preferences.html#a9c1e6e137131d41b962ae1cb4a943bd0">setSurfaceColors</a>(_surface);</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#ac719f8921c733e45c091b2ca0ce12237">setControlPointSize</a>(_prefs.<a class="code" href="classShipCAD_1_1Preferences.html#af474c1924b33adccb7299a95a768d610">getPointSize</a>());</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <span class="comment">// get visibility settings</span></div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    <a class="code" href="classShipCAD_1_1Visibility.html">Visibility</a>&amp; v = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a50cca4c783baeba58c8068c9b8a5d6a4">getVisibility</a>();</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#af5380f1a7932b23a5fbf400c85542381">setShowControlNet</a>(v.<a class="code" href="classShipCAD_1_1Visibility.html#a177cc880657723c1cbcc4c66c16ee208">isShowControlNet</a>());</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a5a4e5acd1bfc4d845d28513dd2dbc0cd">setShowInteriorEdges</a>(v.<a class="code" href="classShipCAD_1_1Visibility.html#a63588a3b8aa0a7dd37b19173a4802b47">isShowInteriorEdges</a>());</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a3605a409a102a18714e9ad7d028e7f33">setDrawMirror</a>(v.<a class="code" href="classShipCAD_1_1Visibility.html#a34d56f9e9467b9749c6b50adfe8a0493">getModelView</a>() == <a class="code" href="namespaceShipCAD.html#a742f9cd95e62e207769e17467ecd5bb7ad45c94ca5dea7f967d58f9864f49c465">mvBoth</a>);</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a678530145785bd366316b35d2bd0ab67">setShowNormals</a>(v.<a class="code" href="classShipCAD_1_1Visibility.html#a973f63d7828898c1499607a8d87b430d">isShowNormals</a>());</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#abf6fe62614aadf1cdd4f26fb4d3fc441">setShowCurvature</a>(v.<a class="code" href="classShipCAD_1_1Visibility.html#a36f2e03d75a5a2cfcfc3c637c08bee92">isShowCurvature</a>());</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#aabf54bc152176697a82c0eb6e47f5981">setShowControlCurves</a>(v.<a class="code" href="classShipCAD_1_1Visibility.html#adf96eb2133086a34056f6c0f75556f13">isShowControlCurves</a>());</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    <span class="comment">// project settings</span></div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    <a class="code" href="classShipCAD_1_1ProjectSettings.html">ProjectSettings</a>&amp; ps = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a94a8eed8ac8ff4ad8287a0a1113e3271">getProjectSettings</a>();</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a797d9b728f794b7f2fc61f1c51dacc06">setShadeUnderWater</a>(ps.<a class="code" href="classShipCAD_1_1ProjectSettings.html#a7b7fca3caf6e2dff52b96c818a87d13c">isShadeUnderwaterShip</a>());</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a81d5637d3b405da5975eb8e86d058bcd">setMainframeLocation</a>(ps.<a class="code" href="classShipCAD_1_1ProjectSettings.html#a194fe12f81ed80e691e8a89c88d91a0b">getMainframeLocation</a>());</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <span class="keywordflow">if</span> (ps.<a class="code" href="classShipCAD_1_1ProjectSettings.html#a7b7fca3caf6e2dff52b96c818a87d13c">isShadeUnderwaterShip</a>()) {</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        <a class="code" href="classShipCAD_1_1Plane.html">Plane</a> pln(0, 0, 1.0f, -(<a class="code" href="classShipCAD_1_1ShipCADModel.html#ab16487a794947608cace81a06552b2b1">findLowestHydrostaticsPoint</a>() + ps.<a class="code" href="classShipCAD_1_1ProjectSettings.html#a0fe6c2dde04c7172c334736516950b51">getDraft</a>()));</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#ae063d1a2be4e227aaefb8a3578d3f52f">setWaterlinePlane</a>(pln);</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    }</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a53271216c1be89154c08d2b2841f9a60">setDesiredSubdivisionLevel</a>(static_cast&lt;int&gt;(_precision)+1);</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a259856fc21f2bc1eebbc52f10dd59469">rebuild</a>();</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;}</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;</div><div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a6133fe12cd13b6ce24424e19a8b1e433">  222</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6133fe12cd13b6ce24424e19a8b1e433">ShipCADModel::setPrecision</a>(<a class="code" href="namespaceShipCAD.html#ae13c7e36dfb1e2300741a631041cd915">precision_t</a> precision)</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;{</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    <span class="keywordflow">if</span> (_precision != precision) {</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        _precision = precision;</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        _surface.<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a53271216c1be89154c08d2b2841f9a60">setDesiredSubdivisionLevel</a>(static_cast&lt;int&gt;(_precision) + 1);</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#ae8fe6d69df313f7459235de1a0614e8c">setFileChanged</a>(<span class="keyword">true</span>);</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#ab221977f2a8bd4d51d6ee777be0d7b8a">setBuild</a>(<span class="keyword">false</span>);</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    }</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;}</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;</div><div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a2636160d900b8d8b00802ae78ee87925">  232</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a2636160d900b8d8b00802ae78ee87925">ShipCADModel::setEditMode</a>(<a class="code" href="namespaceShipCAD.html#a66144e3f3a53da01f51c9bdb94fcae31">edit_mode_t</a> mode)</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;{</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    <span class="keywordflow">if</span> (mode != _edit_mode) {</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;        _edit_mode = mode;</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    }</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;}</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;</div><div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a859625224375157010421a69f96ec639">  239</a></span>&#160;<span class="keywordtype">size_t</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a859625224375157010421a69f96ec639">ShipCADModel::countSelectedItems</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    <span class="keywordtype">size_t</span> count = 0;</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    <span class="keyword">const</span> <a class="code" href="classShipCAD_1_1SubdivisionSurface.html">SubdivisionSurface</a>* s = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>();</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    count += s-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a0b63ee25a8d0da862fc8f123260e4f7d">numberOfSelectedControlCurves</a>()</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;            + s-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a5de7174c531ef00c607948496b3a8780">numberOfSelectedControlEdges</a>()</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;            + s-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a71eed6b40f7bdf66144b4e8320f99b37">numberOfSelectedControlFaces</a>()</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;            + s-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a578aeb421311cb0f0080762b403577b6">numberOfSelectedControlPoints</a>()</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;            + _selected_flowlines.size()</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;            + _selected_markers.size();</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    <span class="keywordflow">return</span> count;</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;}</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;</div><div class="line"><a name="l00252"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a690bd5621d82d15a28ea59c09ded99d8">  252</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a690bd5621d82d15a28ea59c09ded99d8">ShipCADModel::clearSelectedItems</a>()</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;{</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a2a984cc9ae8c78153113552cfb6321d5">clearSelection</a>();</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    _selected_markers.clear();</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    _selected_flowlines.clear();</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;}</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;</div><div class="line"><a name="l00259"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a4c29a9dd9e31c652a82b6398c8f7b983">  259</a></span>&#160;QString <a class="code" href="classShipCAD_1_1ShipCADModel.html#a4c29a9dd9e31c652a82b6398c8f7b983">ShipCADModel::getFilename</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    <span class="keywordflow">if</span> (_filename == <span class="stringliteral">&quot;&quot;</span>) {</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;        <span class="keywordflow">return</span> ShipCADModel::tr(<span class="stringliteral">&quot;New model&quot;</span>);</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    }</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="namespaceShipCAD.html#ae416df4a72579eb3a1a418b19551eb53">ChangeFileExt</a>(_filename, <a class="code" href="namespaceShipCAD.html#a6461e4d91e555f0c732b53f8998b325d">kFileExtension</a>);</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;}</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;</div><div class="line"><a name="l00267"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a07daf75d876f80296f841f5c8d2327cb">  267</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a07daf75d876f80296f841f5c8d2327cb">ShipCADModel::setFilename</a>(<span class="keyword">const</span> QString&amp; name)</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;{</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;    QString tmp(name);</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    <span class="keywordflow">if</span> (tmp.length() == 0) {</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;        tmp = ShipCADModel::tr(<span class="stringliteral">&quot;New model&quot;</span>);</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    }</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    tmp = <a class="code" href="namespaceShipCAD.html#ae416df4a72579eb3a1a418b19551eb53">ChangeFileExt</a>(tmp, <a class="code" href="namespaceShipCAD.html#a6461e4d91e555f0c732b53f8998b325d">kFileExtension</a>);</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    <span class="keywordflow">if</span> (_filename != tmp) {</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;        _filename = tmp;</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    }</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    _filename_set = <span class="keyword">true</span>;</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;}</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;<span class="comment">// FreeShipUnit.pas:4595</span></div><div class="line"><a name="l00281"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a0e9a74dd26baa734437aba2ee05fa940">  281</a></span>&#160;<a class="code" href="classShipCAD_1_1UndoObject.html">UndoObject</a>* <a class="code" href="classShipCAD_1_1ShipCADModel.html#a0e9a74dd26baa734437aba2ee05fa940">ShipCADModel::createUndo</a>(<span class="keyword">const</span> QString&amp; undotext, <span class="keywordtype">bool</span> accept)</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;{</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    <a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694f">version_t</a> version = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a837f41ecb002cd0e197d365edbef3d52">getFileVersion</a>();</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    <span class="keywordtype">bool</span> preview = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a94a8eed8ac8ff4ad8287a0a1113e3271">getProjectSettings</a>().<a class="code" href="classShipCAD_1_1ProjectSettings.html#a8dc00d3f4528d369dbe5810382a98186">isSavePreview</a>();</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    <a class="code" href="classShipCAD_1_1UndoObject.html">UndoObject</a>* rd = <span class="keyword">new</span> <a class="code" href="classShipCAD_1_1UndoObject.html">UndoObject</a>(<span class="keyword">this</span>,</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;                                    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a4c29a9dd9e31c652a82b6398c8f7b983">getFilename</a>(),</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;                                    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a636a331e17c59db296527d1aca0ad01d">getEditMode</a>(),</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;                                    <a class="code" href="classShipCAD_1_1ShipCADModel.html#aac25049d627953c15c5343b2f888f688">isFileChanged</a>(),</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;                                    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a9aa140f98f5f02a30743e2b9ce3d7d28">isFilenameSet</a>(),</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;                                    <span class="keyword">false</span>);</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    rd-&gt;<a class="code" href="classShipCAD_1_1UndoObject.html#aa6eac6ad9b80700ed37e354f970ff812">setUndoText</a>(undotext);</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;    cout &lt;&lt; <span class="stringliteral">&quot;create undo:&#39;&quot;</span> &lt;&lt; undotext.toStdString() &lt;&lt; <span class="stringliteral">&quot;&#39;&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    <span class="keywordflow">try</span> {</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;        <span class="comment">// delete all undo objects after the current one</span></div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;        <span class="keywordflow">while</span> (_undo_list.size() &gt; _undo_pos + 1) {</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;            <a class="code" href="classShipCAD_1_1UndoObject.html">UndoObject</a>* last = _undo_list.back();</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;            _undo_list.pop_back();</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;            <span class="keyword">delete</span> last;</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        }</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;        <span class="comment">// temporarily set to the latest fileversion so no data will be lost</span></div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#a44ac7a48c0c01cae73bf723120071e72">setFileVersion</a>(<a class="code" href="namespaceShipCAD.html#aa3415e1acf9bdb19e24f31f5138d6a60">k_current_version</a>);</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;        <span class="comment">// temp disable saving of preview image</span></div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#a94a8eed8ac8ff4ad8287a0a1113e3271">getProjectSettings</a>().<a class="code" href="classShipCAD_1_1ProjectSettings.html#a3590a9b52236a4aeb9991ea03c518871">setSavePreview</a>(<span class="keyword">false</span>);</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#a64c7c4ddffffdd1be2f27eb4210af2b7">saveBinary</a>(rd-&gt;<a class="code" href="classShipCAD_1_1UndoObject.html#a160e77df4c6ae2bdefc5257aa8e6d85b">getUndoData</a>());</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        <span class="keywordflow">if</span> (accept) {</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;            rd-&gt;<a class="code" href="classShipCAD_1_1UndoObject.html#a93bad349f284a0ff1cece56aa931f9e3">accept</a>();</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;            emit <a class="code" href="classShipCAD_1_1ShipCADModel.html#a036ed7f2f1f5e592c64ef8f0ccf29204">undoDataChanged</a>();</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;        }</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    } <span class="keywordflow">catch</span>(...) {</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;        <span class="comment">// restore the original version</span></div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#a44ac7a48c0c01cae73bf723120071e72">setFileVersion</a>(version);</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#a94a8eed8ac8ff4ad8287a0a1113e3271">getProjectSettings</a>().<a class="code" href="classShipCAD_1_1ProjectSettings.html#a3590a9b52236a4aeb9991ea03c518871">setSavePreview</a>(preview);</div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        <span class="keyword">delete</span> rd;</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;        rd = 0;</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;        cout &lt;&lt; <span class="stringliteral">&quot;*** create undo failed&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;    }</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    <span class="keywordflow">return</span> rd;</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;}</div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;</div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;<span class="comment">// FreeShipUnit.pas:4564</span></div><div class="line"><a name="l00321"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#aa8079da42c7e5ab56ff60af82432d29d">  321</a></span>&#160;<a class="code" href="classShipCAD_1_1UndoObject.html">UndoObject</a>* <a class="code" href="classShipCAD_1_1ShipCADModel.html#aa8079da42c7e5ab56ff60af82432d29d">ShipCADModel::createRedo</a>()</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;{</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    <a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694f">version_t</a> version = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a837f41ecb002cd0e197d365edbef3d52">getFileVersion</a>();</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    <span class="keywordtype">bool</span> preview = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a94a8eed8ac8ff4ad8287a0a1113e3271">getProjectSettings</a>().<a class="code" href="classShipCAD_1_1ProjectSettings.html#a8dc00d3f4528d369dbe5810382a98186">isSavePreview</a>();</div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;    <a class="code" href="classShipCAD_1_1UndoObject.html">UndoObject</a>* rd = <span class="keyword">new</span> <a class="code" href="classShipCAD_1_1UndoObject.html">UndoObject</a>(<span class="keyword">this</span>,</div><div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;                                    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a4c29a9dd9e31c652a82b6398c8f7b983">getFilename</a>(),</div><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;                                    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a636a331e17c59db296527d1aca0ad01d">getEditMode</a>(),</div><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;                                    <a class="code" href="classShipCAD_1_1ShipCADModel.html#aac25049d627953c15c5343b2f888f688">isFileChanged</a>(),</div><div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;                                    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a9aa140f98f5f02a30743e2b9ce3d7d28">isFilenameSet</a>(),</div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;                                    <span class="keyword">true</span>);</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;    cout &lt;&lt; <span class="stringliteral">&quot;create redo&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    <span class="keywordflow">try</span> {</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;        <span class="comment">// temporarily set to the latest fileversion so no data will be lost</span></div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#a44ac7a48c0c01cae73bf723120071e72">setFileVersion</a>(<a class="code" href="namespaceShipCAD.html#aa3415e1acf9bdb19e24f31f5138d6a60">k_current_version</a>);</div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;        <span class="comment">// temp disable saving of preview image</span></div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#a94a8eed8ac8ff4ad8287a0a1113e3271">getProjectSettings</a>().<a class="code" href="classShipCAD_1_1ProjectSettings.html#a3590a9b52236a4aeb9991ea03c518871">setSavePreview</a>(<span class="keyword">false</span>);</div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#a64c7c4ddffffdd1be2f27eb4210af2b7">saveBinary</a>(rd-&gt;<a class="code" href="classShipCAD_1_1UndoObject.html#a160e77df4c6ae2bdefc5257aa8e6d85b">getUndoData</a>());</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;        rd-&gt;<a class="code" href="classShipCAD_1_1UndoObject.html#a93bad349f284a0ff1cece56aa931f9e3">accept</a>();</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;    } <span class="keywordflow">catch</span>(...) {</div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;        <span class="comment">// restore the original version</span></div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#a44ac7a48c0c01cae73bf723120071e72">setFileVersion</a>(version);</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#a94a8eed8ac8ff4ad8287a0a1113e3271">getProjectSettings</a>().<a class="code" href="classShipCAD_1_1ProjectSettings.html#a3590a9b52236a4aeb9991ea03c518871">setSavePreview</a>(preview);</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;        <span class="keyword">delete</span> rd;</div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;        rd = 0;</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;        cout &lt;&lt; <span class="stringliteral">&quot;*** create redo failed&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;    }</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    <span class="keywordflow">return</span> rd;</div><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;}</div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;</div><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;<span class="comment">// called from the undo object</span></div><div class="line"><a name="l00351"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a7e54e8d3a1b972014a3cd71cc57c74dc">  351</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a7e54e8d3a1b972014a3cd71cc57c74dc">ShipCADModel::acceptUndo</a>(<a class="code" href="classShipCAD_1_1UndoObject.html">UndoObject</a>* <a class="code" href="classShipCAD_1_1ShipCADModel.html#a31cd6dcb665c21c1626599d57ae73684">undo</a>)</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;{</div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    <span class="keywordflow">if</span> (_undo_list.size() &gt; 0) {</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;        <span class="keywordflow">if</span> (_undo_list.back()-&gt;isTempRedoObject()) {</div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;            <a class="code" href="classShipCAD_1_1UndoObject.html">UndoObject</a>* last = _undo_list.back();</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;            _undo_list.pop_back();</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;            <span class="keyword">delete</span> last;</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;        }</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    }</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;    <span class="comment">// delete all undo objects after the current one</span></div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    <span class="keywordflow">while</span> (_undo_list.size() &gt; _undo_pos + 1) {</div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;        <a class="code" href="classShipCAD_1_1UndoObject.html">UndoObject</a>* last = _undo_list.back();</div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;        _undo_list.pop_back();</div><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;        <span class="keyword">delete</span> last;</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    }</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    _undo_list.push_back(undo);</div><div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    _undo_pos++;</div><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;    <span class="comment">// remove objects from the front of the list until memory is within limits or we have 2 items</span></div><div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;    <span class="keywordflow">while</span> (((<a class="code" href="classShipCAD_1_1ShipCADModel.html#a6fc43771e5ab6fe985ed894f4a1f779c">getUndoMemory</a>() / (1024*1024)) &gt; <a class="code" href="classShipCAD_1_1ShipCADModel.html#aa6af8872deba5b401ac575a85901a265">getPreferences</a>().getMaxUndoMemory())</div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;           &amp;&amp; _undo_list.size() &gt; 2) {</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;        <a class="code" href="classShipCAD_1_1UndoObject.html">UndoObject</a>* first = _undo_list.front();</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;        _undo_list.pop_front();</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;        <span class="keyword">delete</span> first;</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;        _undo_pos--;</div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;        _prev_undo_pos--;</div><div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    }</div><div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    emit <a class="code" href="classShipCAD_1_1ShipCADModel.html#a036ed7f2f1f5e592c64ef8f0ccf29204">undoDataChanged</a>();</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    cout &lt;&lt; <span class="stringliteral">&quot;undo accepted&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;    cout &lt;&lt; <span class="stringliteral">&quot;undo list:&quot;</span> &lt;&lt; _undo_list.size() &lt;&lt; <span class="stringliteral">&quot; pos:&quot;</span> &lt;&lt; _undo_pos &lt;&lt; <span class="stringliteral">&quot; prev_pos:&quot;</span> &lt;&lt; _prev_undo_pos</div><div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;         &lt;&lt; <span class="stringliteral">&quot; mem:&quot;</span> &lt;&lt; <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6fc43771e5ab6fe985ed894f4a1f779c">getUndoMemory</a>() &lt;&lt; <span class="stringliteral">&quot;\n***&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_undo_list.size(); i++)</div><div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;        cout &lt;&lt; i &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; _undo_list[i]-&gt;getUndoText().toStdString() &lt;&lt; endl;</div><div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;    cout &lt;&lt; <span class="stringliteral">&quot;***&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;}</div><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;</div><div class="line"><a name="l00386"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a6fc43771e5ab6fe985ed894f4a1f779c">  386</a></span>&#160;<span class="keywordtype">size_t</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6fc43771e5ab6fe985ed894f4a1f779c">ShipCADModel::getUndoMemory</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;    <span class="keywordtype">size_t</span> mem_used = 0;</div><div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_undo_list.size(); i++)</div><div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;        mem_used += _undo_list[i]-&gt;getMemory();</div><div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;    <span class="keywordflow">return</span> mem_used;</div><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;}</div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;</div><div class="line"><a name="l00394"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a31cd6dcb665c21c1626599d57ae73684">  394</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a31cd6dcb665c21c1626599d57ae73684">ShipCADModel::undo</a>()</div><div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;{</div><div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;    cout &lt;&lt; <span class="stringliteral">&quot;ShipCADModel::undo&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;    <span class="keywordflow">if</span> (_undo_list.size() &gt; 0) {</div><div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;        <span class="keywordtype">bool</span> preview = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a94a8eed8ac8ff4ad8287a0a1113e3271">getProjectSettings</a>().<a class="code" href="classShipCAD_1_1ProjectSettings.html#a8dc00d3f4528d369dbe5810382a98186">isSavePreview</a>();</div><div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;        <span class="keywordflow">try</span> {</div><div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;            <span class="keywordflow">if</span> (_undo_pos == _undo_list.size()) {</div><div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;                <span class="keywordflow">if</span> (!_undo_list.back()-&gt;isTempRedoObject())</div><div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;                    <a class="code" href="classShipCAD_1_1ShipCADModel.html#aa8079da42c7e5ab56ff60af82432d29d">createRedo</a>();</div><div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;            }</div><div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;            <span class="keywordflow">if</span> (_prev_undo_pos &lt; static_cast&lt;int&gt;(_undo_pos))</div><div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;                --_undo_pos;</div><div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;            _prev_undo_pos = <span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(_undo_pos);</div><div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;            --_undo_pos;</div><div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;            <a class="code" href="classShipCAD_1_1UndoObject.html">UndoObject</a>* uo = _undo_list[_undo_pos];</div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;            uo-&gt;<a class="code" href="classShipCAD_1_1UndoObject.html#a9cace556c2092492f681654d72e35ba6">restore</a>();</div><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;            emit <a class="code" href="classShipCAD_1_1ShipCADModel.html#a036ed7f2f1f5e592c64ef8f0ccf29204">undoDataChanged</a>();</div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;        } <span class="keywordflow">catch</span>(...) {</div><div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;            <a class="code" href="classShipCAD_1_1ShipCADModel.html#a94a8eed8ac8ff4ad8287a0a1113e3271">getProjectSettings</a>().<a class="code" href="classShipCAD_1_1ProjectSettings.html#a3590a9b52236a4aeb9991ea03c518871">setSavePreview</a>(preview);</div><div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;            cout &lt;&lt; <span class="stringliteral">&quot;*** ShipCADModel::undo failed&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        }</div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;        cout &lt;&lt; <span class="stringliteral">&quot;undo list:&quot;</span> &lt;&lt; _undo_list.size() &lt;&lt; <span class="stringliteral">&quot; pos:&quot;</span> &lt;&lt; _undo_pos &lt;&lt; <span class="stringliteral">&quot; prev_pos:&quot;</span></div><div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;             &lt;&lt; _prev_undo_pos &lt;&lt; <span class="stringliteral">&quot; mem:&quot;</span> &lt;&lt; <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6fc43771e5ab6fe985ed894f4a1f779c">getUndoMemory</a>() &lt;&lt; endl;</div><div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    }</div><div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;}</div><div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;</div><div class="line"><a name="l00420"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#ac7f369ecf1a53a751f8774263d3ecd95">  420</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#ac7f369ecf1a53a751f8774263d3ecd95">ShipCADModel::redo</a>()</div><div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;{</div><div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;    cout &lt;&lt; <span class="stringliteral">&quot;ShipCADModel::redo&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;    <span class="keywordflow">if</span> (_undo_list.size() &gt; 0) {</div><div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;        <span class="keywordtype">bool</span> preview = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a94a8eed8ac8ff4ad8287a0a1113e3271">getProjectSettings</a>().<a class="code" href="classShipCAD_1_1ProjectSettings.html#a8dc00d3f4528d369dbe5810382a98186">isSavePreview</a>();</div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;        <span class="keywordflow">try</span> {</div><div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;            <span class="keywordflow">if</span> (_prev_undo_pos &gt; static_cast&lt;int&gt;(_undo_pos))</div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;                ++_undo_pos;</div><div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;            _prev_undo_pos = <span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(_undo_pos);</div><div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;            ++_undo_pos;</div><div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;            <a class="code" href="classShipCAD_1_1UndoObject.html">UndoObject</a>* uo = _undo_list[_undo_pos-1];</div><div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;            uo-&gt;<a class="code" href="classShipCAD_1_1UndoObject.html#a9cace556c2092492f681654d72e35ba6">restore</a>();</div><div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;            emit <a class="code" href="classShipCAD_1_1ShipCADModel.html#a036ed7f2f1f5e592c64ef8f0ccf29204">undoDataChanged</a>();</div><div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;        } <span class="keywordflow">catch</span>(...) {</div><div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;            <a class="code" href="classShipCAD_1_1ShipCADModel.html#a94a8eed8ac8ff4ad8287a0a1113e3271">getProjectSettings</a>().<a class="code" href="classShipCAD_1_1ProjectSettings.html#a3590a9b52236a4aeb9991ea03c518871">setSavePreview</a>(preview);</div><div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;            cout &lt;&lt; <span class="stringliteral">&quot;*** ShipCADModel::redo failed&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;        }</div><div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;        cout &lt;&lt; <span class="stringliteral">&quot;undo list:&quot;</span> &lt;&lt; _undo_list.size() &lt;&lt; <span class="stringliteral">&quot; pos:&quot;</span> &lt;&lt; _undo_pos &lt;&lt; <span class="stringliteral">&quot; prev_pos:&quot;</span></div><div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;             &lt;&lt; _prev_undo_pos &lt;&lt; <span class="stringliteral">&quot; mem:&quot;</span> &lt;&lt; <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6fc43771e5ab6fe985ed894f4a1f779c">getUndoMemory</a>() &lt;&lt; endl;</div><div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;    }</div><div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;}</div><div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;</div><div class="line"><a name="l00442"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a31d65b98d41ec379ae9f27b7cf66b079">  442</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a31d65b98d41ec379ae9f27b7cf66b079">ShipCADModel::canUndo</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;    <span class="keywordflow">return</span> _undo_list.size() &gt; 0 &amp;&amp; _undo_pos &gt; 0;</div><div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;}</div><div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;</div><div class="line"><a name="l00447"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a1178d14769f22603340413c416d6631f">  447</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a1178d14769f22603340413c416d6631f">ShipCADModel::canRedo</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;    <span class="keywordflow">return</span> _undo_list.size() &gt; 0 &amp;&amp; _undo_pos &lt; _undo_list.size();</div><div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;}</div><div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;</div><div class="line"><a name="l00452"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#ac8a3a46ed5864f651495bd450d11ef2a">  452</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#ac8a3a46ed5864f651495bd450d11ef2a">ShipCADModel::clearUndo</a>()</div><div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;{</div><div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_undo_list.size(); i++)</div><div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;        <span class="keyword">delete</span> _undo_list[i];</div><div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;    _undo_list.clear();</div><div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;    _undo_pos = 0;</div><div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;    _prev_undo_pos = -1;</div><div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;    emit <a class="code" href="classShipCAD_1_1ShipCADModel.html#a036ed7f2f1f5e592c64ef8f0ccf29204">undoDataChanged</a>();</div><div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;}</div><div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;</div><div class="line"><a name="l00462"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#aa7d2417dcc847ccf0f72d57eb333410e">  462</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#aa7d2417dcc847ccf0f72d57eb333410e">ShipCADModel::drawWithPainter</a>(<a class="code" href="classShipCAD_1_1Viewport.html">Viewport</a>&amp; vp, QPainter* painter)</div><div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;{</div><div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;    <span class="keywordflow">if</span> (vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() != <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aaccdacbf26c0ffe78ae55326537a28dc1">fvPerspective</a> &amp;&amp; _vis.<a class="code" href="classShipCAD_1_1Visibility.html#a9aa81550e01813b9ec84b40aba5f904e">isShowGrid</a>())</div><div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#af719e24c12a21220c105fc7510d7b8ad">drawGrid</a>(vp, painter);</div><div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;}</div><div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;</div><div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;<span class="comment">// FreeShipUnit.pas:12241</span></div><div class="line"><a name="l00469"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#af719e24c12a21220c105fc7510d7b8ad">  469</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#af719e24c12a21220c105fc7510d7b8ad">ShipCADModel::drawGrid</a>(<a class="code" href="classShipCAD_1_1Viewport.html">Viewport</a>&amp; vp, QPainter* painter)</div><div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;{</div><div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;    QVector3D min;</div><div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;    QVector3D max;</div><div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a7ab84a738b747c4fcb2c3627e56d4bd0">extents</a>(min, max);</div><div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;    </div><div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;    <span class="keywordtype">bool</span> draw_stations = vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() != <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aa1bc519e3e41c233dd8e94c40af1fd36d">fvBodyplan</a>;</div><div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;    <span class="keywordtype">bool</span> draw_buttocks = vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() != <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aa05a0a083efb18429cbb855b2dcbf5e18">fvProfile</a>;</div><div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;    <span class="keywordtype">bool</span> draw_waterlines = vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() != <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aab67fb04b0624572e1567bff4caefde27">fvPlan</a>;</div><div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;    <span class="keywordtype">bool</span> draw_diagonals = vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() == <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aa1bc519e3e41c233dd8e94c40af1fd36d">fvBodyplan</a>;</div><div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;</div><div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;    <span class="comment">// blowup the boundary box by 3%</span></div><div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;    QVector3D diff = (max - min) * 0.03;</div><div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;    min -= diff;</div><div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;    max += diff;</div><div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;    </div><div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;    QPen linepen1(_prefs.<a class="code" href="classShipCAD_1_1Preferences.html#a02a4e2aeef1d1cc16bc4a22525737866">getGridColor</a>(), 1);</div><div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;    QPen linepen2(_prefs.<a class="code" href="classShipCAD_1_1Preferences.html#a02a4e2aeef1d1cc16bc4a22525737866">getGridColor</a>(), 2);</div><div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;    QPen textpen(_prefs.<a class="code" href="classShipCAD_1_1Preferences.html#a97b3c3d9765e4b726f20f9853d4843dd">getGridFontColor</a>());</div><div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;    QPen textredpen(Qt::red);</div><div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;    QFont font(<span class="stringliteral">&quot;Arial&quot;</span>, 8);</div><div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;    QFontMetrics fm(font);</div><div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;    painter-&gt;setFont(font);</div><div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;    <span class="keywordflow">if</span> (draw_stations || draw_buttocks || draw_waterlines || draw_diagonals) {</div><div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;        <span class="keywordflow">if</span> (vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() != <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aa05a0a083efb18429cbb855b2dcbf5e18">fvProfile</a>) {</div><div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;            <span class="comment">// draw centerline</span></div><div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;            QVector3D p1(min);</div><div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;            QVector3D p2(max);</div><div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;            p1.setY(0.0);</div><div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;            p2.setY(0.0);</div><div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;            QPoint pt1 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p1);</div><div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;            QPoint pt2 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p2);</div><div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;            painter-&gt;setPen(linepen2);</div><div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;            painter-&gt;drawLine(pt1, pt2);</div><div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;            painter-&gt;setPen(textredpen);</div><div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;            <span class="comment">// msg 183</span></div><div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;            QString msg(tr(<span class="stringliteral">&quot;Centerline&quot;</span>));</div><div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;            <span class="keywordtype">int</span> width = fm.width(msg);</div><div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;            <span class="keywordflow">if</span> (vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() == <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aa1bc519e3e41c233dd8e94c40af1fd36d">fvBodyplan</a>) {</div><div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;                painter-&gt;drawText(pt1.x() - (width / 2), pt1.y(), msg);</div><div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;                painter-&gt;drawText(pt2.x() - (width / 2), pt2.y(), msg);</div><div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;            } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;                painter-&gt;drawText(pt1.x() - width, pt1.y(), msg);</div><div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;                painter-&gt;drawText(pt2.x(), pt2.y(), msg);</div><div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;            }</div><div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;        }</div><div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;        <span class="keywordflow">if</span> (vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() != <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aab67fb04b0624572e1567bff4caefde27">fvPlan</a>) {</div><div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;            <span class="comment">// draw baseline</span></div><div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;            QVector3D p1(min);</div><div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;            QVector3D p2(max);</div><div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;            <span class="keywordtype">float</span> position = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1Entity.html#a7c4227afa7a356a667224cfba69a24e5">getMin</a>().z();</div><div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;            p1.setZ(position);</div><div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;            p2.setZ(p1.z());</div><div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;            QPoint pt1 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p1);</div><div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;            QPoint pt2 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p2);</div><div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;            painter-&gt;setPen(linepen2);</div><div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;            painter-&gt;drawLine(pt1, pt2);</div><div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;            painter-&gt;setPen(textredpen);</div><div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;            <span class="comment">// msg 184</span></div><div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;            QString msg(tr(<span class="stringliteral">&quot;Base %1&quot;</span>).arg(<a class="code" href="namespaceShipCAD.html#ac24d97adcdf1709fc8e857f5d07395ff">ConvertDimension</a>(position, _settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#af9e707de58afaa87f639c2426dbb1161">getUnits</a>())));</div><div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;            <span class="keywordtype">int</span> width = fm.width(msg);</div><div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;            painter-&gt;drawText(pt1.x(), pt1.y(), msg);</div><div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;            painter-&gt;drawText(pt2.x()-width, pt2.y(), msg);</div><div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;            <span class="comment">// draw dwl</span></div><div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;            <span class="keywordflow">if</span> (_settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#a023b0fc90ce3b5befdcbf01485f04bc6">isMainParticularsSet</a>()) {</div><div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;                position = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1Entity.html#a7c4227afa7a356a667224cfba69a24e5">getMin</a>().z() + _settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#a0fe6c2dde04c7172c334736516950b51">getDraft</a>();</div><div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;                p1.setZ(position);</div><div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;                p2.setZ(p1.z());</div><div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;                pt1 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p1);</div><div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;                pt2 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p2);</div><div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;                painter-&gt;setPen(linepen2);</div><div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;                painter-&gt;drawLine(pt1, pt2);</div><div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;                painter-&gt;setPen(textredpen);</div><div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;                <span class="comment">// msg 185</span></div><div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;                QString msg(tr(<span class="stringliteral">&quot;DWL %1&quot;</span>).arg(<a class="code" href="namespaceShipCAD.html#ac24d97adcdf1709fc8e857f5d07395ff">ConvertDimension</a>(position, _settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#af9e707de58afaa87f639c2426dbb1161">getUnits</a>())));</div><div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;                <span class="keywordtype">int</span> width = fm.width(msg);</div><div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;                painter-&gt;drawText(pt1.x() - width / 2, pt1.y(), msg);</div><div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;                painter-&gt;drawText(pt2.x() - width / 2, pt2.y(), msg);</div><div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;            }</div><div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;        }</div><div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;    }</div><div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;    <span class="keywordflow">if</span> (draw_stations) {</div><div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;        QVector3D p1 = min;</div><div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;        QVector3D p2 = max;</div><div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_stations.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); ++i) {</div><div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;            <span class="keywordtype">float</span> position = -_stations.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#ac0b838a811f8df5c2fa0b0ea44ba4bb7">getPlane</a>().<a class="code" href="classShipCAD_1_1Plane.html#a7755d7967aae2e083c5d08fed49d9eef">d</a>();</div><div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;            p1.setX(position);</div><div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;            p2.setX(p1.x());</div><div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;            QString str = <a class="code" href="namespaceShipCAD.html#ac24d97adcdf1709fc8e857f5d07395ff">ConvertDimension</a>(position, _settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#af9e707de58afaa87f639c2426dbb1161">getUnits</a>());</div><div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;            QPoint pt1 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p1);</div><div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;            QPoint pt2 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p2);</div><div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;            painter-&gt;setPen(linepen1);</div><div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;            painter-&gt;drawLine(pt1, pt2);</div><div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;            <span class="comment">//int width = fm.width(str);</span></div><div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;            <span class="keywordtype">int</span> height = fm.height();</div><div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;            painter-&gt;setPen(textpen);</div><div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;            painter-&gt;drawText(pt1.x(), pt1.y() + height, str);</div><div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;            painter-&gt;drawText(pt2.x(), pt2.y(), str);</div><div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;        }</div><div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;    }</div><div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;    <span class="keywordflow">if</span> (draw_diagonals) {</div><div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;        QVector3D p1 = min;</div><div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;        QVector3D p2 = max;</div><div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_diagonals.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); ++i) {</div><div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;            <a class="code" href="classShipCAD_1_1Intersection.html">Intersection</a>* diagonal = _diagonals.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i);</div><div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;            <span class="keywordflow">if</span> (!diagonal-&gt;<a class="code" href="classShipCAD_1_1Entity.html#ab2f54a1745c95aa0871a8c57c114809e">isBuild</a>())</div><div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;                diagonal-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#aed30bdca43037f72b85c4d53e234fd6c">rebuild</a>();</div><div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;diagonal-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#a0092acbb149bb6a5c2e1f9a4b300c2da">getSplines</a>().<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); ++j) {</div><div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;                <a class="code" href="classShipCAD_1_1Spline.html">Spline</a>* sp = diagonal-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#a0092acbb149bb6a5c2e1f9a4b300c2da">getSplines</a>().<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(j);</div><div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;                p1 = sp-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa62cf7afa6461bafce7227ec31875219">value</a>(0 / 100.0);</div><div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;                QPoint pt1 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p1);</div><div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;                <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> n=1; n&lt;=100; ++n) {</div><div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;                    p2 = sp-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa62cf7afa6461bafce7227ec31875219">value</a>(n / 100.0);</div><div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;                    QPoint pt2 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p2);</div><div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;                    painter-&gt;setPen(linepen1);</div><div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;                    painter-&gt;drawLine(pt1, pt2);</div><div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;                    pt1 = pt2;</div><div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;                }</div><div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;                <span class="keywordflow">if</span> (_vis.<a class="code" href="classShipCAD_1_1Visibility.html#a34d56f9e9467b9749c6b50adfe8a0493">getModelView</a>() == <a class="code" href="namespaceShipCAD.html#a742f9cd95e62e207769e17467ecd5bb7ad45c94ca5dea7f967d58f9864f49c465">mvBoth</a> || vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() == <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aa1bc519e3e41c233dd8e94c40af1fd36d">fvBodyplan</a>) {</div><div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;                    p1 = sp-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa62cf7afa6461bafce7227ec31875219">value</a>(0 / 100.0);</div><div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;                    p1.setY(-p1.y());</div><div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;                    QPoint pt1 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p1);</div><div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;                    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> n=1; n&lt;=100; ++n) {</div><div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;                        p2 = sp-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa62cf7afa6461bafce7227ec31875219">value</a>(n / 100.0);</div><div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;                        p2.setY(-p2.y());</div><div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;                        QPoint pt2 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p2);</div><div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;                        painter-&gt;setPen(linepen1);</div><div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;                        painter-&gt;drawLine(pt1, pt2);</div><div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;                        pt1 = pt2;</div><div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;                    }</div><div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;                }</div><div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;            }</div><div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;</div><div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;        }</div><div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;    }</div><div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;    <span class="keywordflow">if</span> (draw_buttocks) {</div><div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;        QVector3D p1 = min;</div><div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;        QVector3D p2 = max;</div><div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_buttocks.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); ++i) {</div><div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;            <span class="keywordtype">float</span> position = -_buttocks.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#ac0b838a811f8df5c2fa0b0ea44ba4bb7">getPlane</a>().<a class="code" href="classShipCAD_1_1Plane.html#a7755d7967aae2e083c5d08fed49d9eef">d</a>();</div><div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;            QString str = <a class="code" href="namespaceShipCAD.html#ac24d97adcdf1709fc8e857f5d07395ff">ConvertDimension</a>(position, _settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#af9e707de58afaa87f639c2426dbb1161">getUnits</a>());</div><div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;            p1.setY(position);</div><div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;            p2.setY(p1.y());</div><div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;            QPoint pt1 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p1);</div><div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;            QPoint pt2 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p2);</div><div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;            painter-&gt;setPen(linepen1);</div><div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;            painter-&gt;drawLine(pt1, pt2);</div><div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;            <span class="keywordtype">int</span> width = vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() == <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aa1bc519e3e41c233dd8e94c40af1fd36d">fvBodyplan</a> ? 0 : fm.width(str);</div><div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;            painter-&gt;setPen(textpen);</div><div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;            <span class="keywordflow">if</span> (vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() == <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aa1bc519e3e41c233dd8e94c40af1fd36d">fvBodyplan</a>) {</div><div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;                painter-&gt;drawText(pt1.x(), pt1.y(), str);</div><div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;                painter-&gt;drawText(pt2.x() - width, pt2.y(), str);</div><div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;            } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;                painter-&gt;drawText(pt1.x(), pt1.y(), str);</div><div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;                painter-&gt;drawText(pt2.x() - width, pt2.y(), str);</div><div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;            }</div><div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;            <span class="keywordflow">if</span> (_vis.<a class="code" href="classShipCAD_1_1Visibility.html#a34d56f9e9467b9749c6b50adfe8a0493">getModelView</a>() == <a class="code" href="namespaceShipCAD.html#a742f9cd95e62e207769e17467ecd5bb7ad45c94ca5dea7f967d58f9864f49c465">mvBoth</a> || vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() == <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aa1bc519e3e41c233dd8e94c40af1fd36d">fvBodyplan</a>) {</div><div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;                p1.setY(-position);</div><div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;                p2.setY(p1.y());</div><div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;                QString str1 = <a class="code" href="namespaceShipCAD.html#ac24d97adcdf1709fc8e857f5d07395ff">ConvertDimension</a>(-position, _settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#af9e707de58afaa87f639c2426dbb1161">getUnits</a>());</div><div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;                pt1 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p1);</div><div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;                pt2 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p2);</div><div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;                painter-&gt;setPen(linepen1);</div><div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;                painter-&gt;drawLine(pt1, pt2);</div><div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;                <span class="keywordtype">int</span> width = fm.width(str);</div><div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;                <span class="keywordtype">int</span> height = fm.height();</div><div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;                painter-&gt;setPen(textpen);</div><div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;                <span class="keywordflow">if</span> (vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() == <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aa1bc519e3e41c233dd8e94c40af1fd36d">fvBodyplan</a>) {</div><div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;                    painter-&gt;drawText(pt1.x() - width, pt1.y(), str1);</div><div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;                    painter-&gt;drawText(pt2.x() - width, pt2.y(), str1);</div><div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;                } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;                    painter-&gt;drawText(pt2.x() - width, pt2.y() + height, str1);</div><div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;                    painter-&gt;drawText(pt1.x(), pt1.y() + height, str1);</div><div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;                }</div><div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;            }</div><div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;        }</div><div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;    }</div><div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;    <span class="keywordflow">if</span> (draw_waterlines) {</div><div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;        QVector3D p1 = min;</div><div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;        QVector3D p2 = max;</div><div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_waterlines.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); ++i) {</div><div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;            <span class="keywordtype">float</span> position = -_waterlines.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#ac0b838a811f8df5c2fa0b0ea44ba4bb7">getPlane</a>().<a class="code" href="classShipCAD_1_1Plane.html#a7755d7967aae2e083c5d08fed49d9eef">d</a>();</div><div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;            p1.setZ(position);</div><div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160;            p2.setZ(p1.z());</div><div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;            QString str = <a class="code" href="namespaceShipCAD.html#ac24d97adcdf1709fc8e857f5d07395ff">ConvertDimension</a>(position, _settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#af9e707de58afaa87f639c2426dbb1161">getUnits</a>());</div><div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;            QPoint pt1 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p1);</div><div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;            QPoint pt2 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">convert3D</a>(p2);</div><div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;            painter-&gt;setPen(linepen1);</div><div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;            painter-&gt;drawLine(pt1, pt2);</div><div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;            <span class="keywordtype">int</span> width = fm.width(str);</div><div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;            painter-&gt;setPen(textpen);</div><div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;            painter-&gt;drawText(pt1.x(), pt1.y(), str);</div><div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;            painter-&gt;drawText(pt2.x() - width, pt2.y(), str);</div><div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;        }</div><div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;    }</div><div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;}</div><div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;</div><div class="line"><a name="l00666"></a><span class="lineno"><a class="line" href="structdraw__intersection.html">  666</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structdraw__intersection.html">draw_intersection</a></div><div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;{</div><div class="line"><a name="l00668"></a><span class="lineno"><a class="line" href="structdraw__intersection.html#a4550bf7c1203e48abdc041e4e248c5f7">  668</a></span>&#160;    <a class="code" href="classShipCAD_1_1Viewport.html">Viewport</a>&amp; <a class="code" href="structdraw__intersection.html#a4550bf7c1203e48abdc041e4e248c5f7">_vp</a>;</div><div class="line"><a name="l00669"></a><span class="lineno"><a class="line" href="structdraw__intersection.html#a5f59d55f5e41a2585af4fea6a4d93374">  669</a></span>&#160;    <a class="code" href="classShipCAD_1_1LineShader.html">LineShader</a>* <a class="code" href="structdraw__intersection.html#a5f59d55f5e41a2585af4fea6a4d93374">_ls</a>;</div><div class="line"><a name="l00670"></a><span class="lineno"><a class="line" href="structdraw__intersection.html#a4471bc736f3a58dc15f577144772601b">  670</a></span>&#160;    <a class="code" href="structdraw__intersection.html#a4471bc736f3a58dc15f577144772601b">draw_intersection</a>(<a class="code" href="classShipCAD_1_1Viewport.html">Viewport</a>&amp; vp, <a class="code" href="classShipCAD_1_1LineShader.html">LineShader</a>* lineshader)</div><div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;        : _vp(vp), _ls(lineshader)</div><div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;    {}</div><div class="line"><a name="l00673"></a><span class="lineno"><a class="line" href="structdraw__intersection.html#a3515516eb4ac321e9a1323140b9f47b0">  673</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structdraw__intersection.html#a3515516eb4ac321e9a1323140b9f47b0">operator()</a>(<a class="code" href="classShipCAD_1_1Intersection.html">Intersection</a>* itsection)</div><div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;    {</div><div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;        itsection-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#a9e346019a52aa0540628b75994ea94a5">draw</a>(_vp, _ls);</div><div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;    }</div><div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;};</div><div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;</div><div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;<span class="comment">// FreeShipUnit.pas:12186</span></div><div class="line"><a name="l00680"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#abf593b803e96a1fd8e56f36b3b6d0954">  680</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#abf593b803e96a1fd8e56f36b3b6d0954">ShipCADModel::draw</a>(<a class="code" href="classShipCAD_1_1Viewport.html">Viewport</a>&amp; vp)</div><div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160;{</div><div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;    <a class="code" href="classShipCAD_1_1LineShader.html">LineShader</a>* lineshader = vp.<a class="code" href="classShipCAD_1_1Viewport.html#a0720a01f8650dc4acf89aad0649d9196">setLineShader</a>();</div><div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160;    <a class="code" href="structdraw__intersection.html">draw_intersection</a> di(vp, lineshader);</div><div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;    <span class="comment">// draw intersection lines BEFORE the surface is drawn</span></div><div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;    <span class="comment">// so that the controlnet appears on top</span></div><div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;    <span class="comment">// but the intersections that should be drawn last depends on the view</span></div><div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;    <span class="keywordflow">if</span> (vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() != <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aaccdacbf26c0ffe78ae55326537a28dc1">fvPerspective</a>) {</div><div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;        <span class="keywordflow">if</span> (!_vis.isShowGrid()) {</div><div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;            <span class="keywordflow">if</span> (vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() != <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aa1bc519e3e41c233dd8e94c40af1fd36d">fvBodyplan</a> &amp;&amp; _vis.isShowStations()) {</div><div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;                for_each(_stations.begin(), _stations.end(), di);</div><div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;            }</div><div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;            <span class="keywordflow">if</span> (vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() != <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aa05a0a083efb18429cbb855b2dcbf5e18">fvProfile</a> &amp;&amp; _vis.isShowButtocks()) {</div><div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;                for_each(_buttocks.begin(), _buttocks.end(), di);</div><div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160;            }</div><div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;            <span class="keywordflow">if</span> (vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() != <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aab67fb04b0624572e1567bff4caefde27">fvPlan</a> &amp;&amp; _vis.isShowWaterlines()) {</div><div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;                for_each(_waterlines.begin(), _waterlines.end(), di);</div><div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;            }</div><div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;            <span class="keywordflow">if</span> (_vis.isShowDiagonals()) {</div><div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;                for_each(_diagonals.begin(), _diagonals.end(), di);</div><div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160;            }</div><div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160;        }</div><div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160;        <span class="keywordflow">if</span> (vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() == <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aa1bc519e3e41c233dd8e94c40af1fd36d">fvBodyplan</a> &amp;&amp; _vis.isShowStations()) {</div><div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;            for_each(_stations.begin(), _stations.end(), di);</div><div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160;        }</div><div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;        <span class="keywordflow">if</span> (vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() == <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aa05a0a083efb18429cbb855b2dcbf5e18">fvProfile</a> &amp;&amp; _vis.isShowButtocks()) {</div><div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;            for_each(_buttocks.begin(), _buttocks.end(), di);</div><div class="line"><a name="l00707"></a><span class="lineno">  707</span>&#160;        }</div><div class="line"><a name="l00708"></a><span class="lineno">  708</span>&#160;        <span class="keywordflow">if</span> (vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() == <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aab67fb04b0624572e1567bff4caefde27">fvPlan</a> &amp;&amp; _vis.isShowWaterlines()) {</div><div class="line"><a name="l00709"></a><span class="lineno">  709</span>&#160;            for_each(_waterlines.begin(), _waterlines.end(), di);</div><div class="line"><a name="l00710"></a><span class="lineno">  710</span>&#160;        }</div><div class="line"><a name="l00711"></a><span class="lineno">  711</span>&#160;        <span class="keywordflow">if</span> (vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() != <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aa1bc519e3e41c233dd8e94c40af1fd36d">fvBodyplan</a> &amp;&amp; _vis.isShowDiagonals()) {</div><div class="line"><a name="l00712"></a><span class="lineno">  712</span>&#160;            for_each(_diagonals.begin(), _diagonals.end(), di);</div><div class="line"><a name="l00713"></a><span class="lineno">  713</span>&#160;        }</div><div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160;    } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160;        <span class="keywordflow">if</span> (_vis.isShowStations()) {</div><div class="line"><a name="l00716"></a><span class="lineno">  716</span>&#160;            for_each(_stations.begin(), _stations.end(), di);</div><div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160;        }</div><div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160;        <span class="keywordflow">if</span> (_vis.isShowButtocks()) {</div><div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;            for_each(_buttocks.begin(), _buttocks.end(), di);</div><div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;        }</div><div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;        <span class="keywordflow">if</span> (_vis.isShowWaterlines()) {</div><div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160;            for_each(_waterlines.begin(), _waterlines.end(), di);</div><div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160;        }</div><div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160;        <span class="keywordflow">if</span> (_vis.isShowDiagonals()) {</div><div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160;            for_each(_diagonals.begin(), _diagonals.end(), di);</div><div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160;        }</div><div class="line"><a name="l00727"></a><span class="lineno">  727</span>&#160;    }</div><div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160;    <span class="comment">// draw markers</span></div><div class="line"><a name="l00729"></a><span class="lineno">  729</span>&#160;    <span class="keywordflow">if</span> (_vis.isShowMarkers() &amp;&amp; vp.<a class="code" href="classShipCAD_1_1Viewport.html#a205e5082395c6d01660ffc179c57b83e">getViewportMode</a>() == <a class="code" href="namespaceShipCAD.html#a67437198ee14f74e6c5277d761894863a109cd328af19be260371a7e5333043f8">vmWireFrame</a>) {</div><div class="line"><a name="l00730"></a><span class="lineno">  730</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_markers.size(); i++)</div><div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160;            _markers.get(i)-&gt;draw(vp, lineshader);</div><div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160;    }</div><div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#acfe9cc964dbe05105486b43f2dc6fc4f">draw</a>(vp);</div><div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;    <span class="keywordflow">if</span> (vp.<a class="code" href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">getViewportType</a>() != <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aaccdacbf26c0ffe78ae55326537a28dc1">fvPerspective</a> &amp;&amp; vp.<a class="code" href="classShipCAD_1_1Viewport.html#a205e5082395c6d01660ffc179c57b83e">getViewportMode</a>() != <a class="code" href="namespaceShipCAD.html#a67437198ee14f74e6c5277d761894863a109cd328af19be260371a7e5333043f8">vmWireFrame</a> &amp;&amp; _vis.isShowGrid()) {</div><div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;        <span class="comment">// shaded viewport is a special case when visibility.drawgrid is true</span></div><div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160;        <a class="code" href="classShipCAD_1_1LineShader.html">LineShader</a>* lineshader1 = vp.<a class="code" href="classShipCAD_1_1Viewport.html#a0720a01f8650dc4acf89aad0649d9196">setLineShader</a>();</div><div class="line"><a name="l00737"></a><span class="lineno">  737</span>&#160;        <a class="code" href="structdraw__intersection.html">draw_intersection</a> di1(vp, lineshader1);</div><div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;        <span class="keywordflow">if</span> (_vis.isShowStations()) {</div><div class="line"><a name="l00739"></a><span class="lineno">  739</span>&#160;            for_each(_stations.begin(), _stations.end(), di);</div><div class="line"><a name="l00740"></a><span class="lineno">  740</span>&#160;        }</div><div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160;        <span class="keywordflow">if</span> (_vis.isShowButtocks()) {</div><div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160;            for_each(_buttocks.begin(), _buttocks.end(), di);</div><div class="line"><a name="l00743"></a><span class="lineno">  743</span>&#160;        }</div><div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160;        <span class="keywordflow">if</span> (_vis.isShowWaterlines()) {</div><div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160;            for_each(_waterlines.begin(), _waterlines.end(), di);</div><div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;        }</div><div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;        <span class="keywordflow">if</span> (_vis.isShowDiagonals()) {</div><div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160;            for_each(_diagonals.begin(), _diagonals.end(), di);</div><div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160;        }</div><div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160;    }</div><div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;    <span class="keywordflow">if</span> (vp.<a class="code" href="classShipCAD_1_1Viewport.html#a205e5082395c6d01660ffc179c57b83e">getViewportMode</a>() == <a class="code" href="namespaceShipCAD.html#a67437198ee14f74e6c5277d761894863a109cd328af19be260371a7e5333043f8">vmWireFrame</a> &amp;&amp; _vis.isShowHydrostaticData()) {</div><div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160;        <span class="comment">// TODO</span></div><div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;    }</div><div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160;    <span class="keywordflow">if</span> (_vis.isShowFlowlines()) {</div><div class="line"><a name="l00755"></a><span class="lineno">  755</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_flowlines.size(); i++)</div><div class="line"><a name="l00756"></a><span class="lineno">  756</span>&#160;            _flowlines.get(i)-&gt;draw(vp, lineshader);</div><div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160;    }</div><div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;    <span class="keywordflow">if</span> (vp.<a class="code" href="classShipCAD_1_1Viewport.html#a205e5082395c6d01660ffc179c57b83e">getViewportMode</a>() == <a class="code" href="namespaceShipCAD.html#a67437198ee14f74e6c5277d761894863aaf20984128d2e9697958fa8c329a801a">vmShadeGauss</a> &amp;&amp; <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a6a735e1f8b3fdef0469ead5ed006e2a0">numberOfControlFaces</a>() &gt; 0</div><div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160;            &amp;&amp; (<a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a61fb5c6ccba4c5491ddcc69182213831">getMaxGausCurvature</a>() - <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a485f26282ac985446cdec3a98753c2eb">getMinGausCurvature</a>()) &gt; 1E-7) {</div><div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;        <span class="comment">// Draw legend with gaussian curvature values</span></div><div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;        <span class="comment">//TODO</span></div><div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;    }</div><div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;}</div><div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;</div><div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;<span class="comment">// FreeShipUnit.pas:9995</span></div><div class="line"><a name="l00766"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a5e9e159fc6c1fcd06cc14005bb0e51c8">  766</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a5e9e159fc6c1fcd06cc14005bb0e51c8">ShipCADModel::scaleModel</a>(<span class="keyword">const</span> QVector3D&amp; scale, <span class="keywordtype">bool</span> override_lock, <span class="keywordtype">bool</span> adjust_markers)</div><div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;{</div><div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a994923f432129431b30d6b532059a6ab">numberOfControlPoints</a>(); i++) {</div><div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html">SubdivisionControlPoint</a>* pt = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a534abfeaab8e30436c7ba4f14048472a">getControlPoint</a>(i);</div><div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160;        <span class="keywordflow">if</span> (!pt-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html#a85c52118d96f400be4705bf419b412c6">isLocked</a>() || override_lock)</div><div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;            pt-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html#a54a5233e02ef34a174c24d5dcf3c6407">setCoordinate</a>(pt-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a285325115089a1b99be4480bf6079bf1">getCoordinate</a>() * scale);</div><div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;    }</div><div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;    <span class="comment">// update mainparticulars</span></div><div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;    <a class="code" href="classShipCAD_1_1ProjectSettings.html">ProjectSettings</a>&amp; settings = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a94a8eed8ac8ff4ad8287a0a1113e3271">getProjectSettings</a>();</div><div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160;    settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#aad72cb11575e7a1ae0cda2c50f8de2ad">setLength</a>(abs(settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#a989e357d35af68ac2da9b0e760926308">getLength</a>() * scale.x()));</div><div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;    settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#ac90d2a093ae0af951fd117d7f6981e92">setBeam</a>(abs(settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#ad96c7b5dca9156a767dde327cf5b55c1">getBeam</a>() * scale.y()));</div><div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;    settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#a16a64f2a4a9b6359ac46b0a85f90a4ae">setDraft</a>(abs(settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#a0fe6c2dde04c7172c334736516950b51">getDraft</a>() * scale.z()));</div><div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;    <span class="keywordflow">if</span> (!settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#adddd4471a30e16aa3aca62bb8bee3b02">useDefaultMainframeLocation</a>())</div><div class="line"><a name="l00779"></a><span class="lineno">  779</span>&#160;        settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#acac72dbc1dc2f68c1d32981ac9a27603">setMainframeLocation</a>(settings.<a class="code" href="classShipCAD_1_1ProjectSettings.html#a194fe12f81ed80e691e8a89c88d91a0b">getMainframeLocation</a>() * scale.x());</div><div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160;    <span class="comment">// update markers</span></div><div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160;    <span class="keywordflow">if</span> (adjust_markers) {</div><div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160;        <a class="code" href="namespaceShipCAD.html#a880f36455b3b35823ae14bdd62e20b31">MarkerVectorIterator</a> itr = <a class="code" href="classShipCAD_1_1ShipCADModel.html#abc5faaa00b4b34bc1b0b1cd52af4ab3b">getMarkers</a>().<a class="code" href="classPointerVector.html#a594866129f2e9a3701c1f414ca3299e3">begin</a>();</div><div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;        <span class="keywordflow">for</span> (; itr!=<a class="code" href="classShipCAD_1_1ShipCADModel.html#abc5faaa00b4b34bc1b0b1cd52af4ab3b">getMarkers</a>().<a class="code" href="classPointerVector.html#a6182f5429c4c98ba2556d40484aab2f9">end</a>(); ++itr) {</div><div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;(*itr)-&gt;numberOfPoints(); j++) {</div><div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;                (*itr)-&gt;setPoint(j, (*itr)-&gt;getPoint(j) * scale);</div><div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;            }</div><div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;        }</div><div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160;    }</div><div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160;    <span class="comment">// update stations, buttocks, and waterlines</span></div><div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;    <a class="code" href="classPointerVector.html">IntersectionVector</a>&amp; stations = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a86da3ca66e90403ead21ccc67f584c52">getStations</a>();</div><div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;stations.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++)</div><div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160;        stations.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#ac0b838a811f8df5c2fa0b0ea44ba4bb7">getPlane</a>().<a class="code" href="classShipCAD_1_1Plane.html#a5c3e18bcb1bb77563fd994866ba823df">setD</a>(stations.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#ac0b838a811f8df5c2fa0b0ea44ba4bb7">getPlane</a>().<a class="code" href="classShipCAD_1_1Plane.html#a7755d7967aae2e083c5d08fed49d9eef">d</a>() * scale.x());</div><div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;    <a class="code" href="classPointerVector.html">IntersectionVector</a>&amp; waterlines = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6c147a75fa02e43145de346efb9542fd">getWaterlines</a>();</div><div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;waterlines.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++)</div><div class="line"><a name="l00795"></a><span class="lineno">  795</span>&#160;        waterlines.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#ac0b838a811f8df5c2fa0b0ea44ba4bb7">getPlane</a>().<a class="code" href="classShipCAD_1_1Plane.html#a5c3e18bcb1bb77563fd994866ba823df">setD</a>(waterlines.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#ac0b838a811f8df5c2fa0b0ea44ba4bb7">getPlane</a>().<a class="code" href="classShipCAD_1_1Plane.html#a7755d7967aae2e083c5d08fed49d9eef">d</a>() * scale.y());</div><div class="line"><a name="l00796"></a><span class="lineno">  796</span>&#160;    <a class="code" href="classPointerVector.html">IntersectionVector</a>&amp; buttocks = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a8908d7adff0b1aa1ed118103c02c5402">getButtocks</a>();</div><div class="line"><a name="l00797"></a><span class="lineno">  797</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;buttocks.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++)</div><div class="line"><a name="l00798"></a><span class="lineno">  798</span>&#160;        buttocks.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#ac0b838a811f8df5c2fa0b0ea44ba4bb7">getPlane</a>().<a class="code" href="classShipCAD_1_1Plane.html#a5c3e18bcb1bb77563fd994866ba823df">setD</a>(buttocks.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#ac0b838a811f8df5c2fa0b0ea44ba4bb7">getPlane</a>().<a class="code" href="classShipCAD_1_1Plane.html#a7755d7967aae2e083c5d08fed49d9eef">d</a>() * scale.z());</div><div class="line"><a name="l00799"></a><span class="lineno">  799</span>&#160;    <span class="comment">// reset any present hydrostatic calculations</span></div><div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160;    <a class="code" href="classPointerVector.html">HydrostaticCalcVector</a>&amp; calc = <a class="code" href="classShipCAD_1_1ShipCADModel.html#aafc30dd7d6b9db4ccfc7bf1c4e2b3b11">getHydrostaticCalculations</a>();</div><div class="line"><a name="l00801"></a><span class="lineno">  801</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;calc.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++) {</div><div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;        calc.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1HydrostaticCalc.html#a6528fe532bbb1121c73972906d108835">setDraft</a>(abs(calc.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1HydrostaticCalc.html#a3e1579cbcaddec517cfa95faa2228f2c">getDraft</a>() * scale.z()));</div><div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160;        calc.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1HydrostaticCalc.html#ace579596fa77d8e3ea4f854ca033ed83">setTrim</a>(abs(calc.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1HydrostaticCalc.html#a90ae18aaf3a9836d01594cda165f35bb">getTrim</a>() * scale.z()));</div><div class="line"><a name="l00804"></a><span class="lineno">  804</span>&#160;        calc.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1HydrostaticCalc.html#a0deeafff07f3bb77184df959bbd91266">setCalculated</a>(<span class="keyword">false</span>);</div><div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;    }</div><div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160;    <span class="comment">// scale data used for KAPER series resistance calculations</span></div><div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160;    <span class="comment">// TODO</span></div><div class="line"><a name="l00808"></a><span class="lineno">  808</span>&#160;    <span class="comment">// scale data used for DELFT series resistance calculations</span></div><div class="line"><a name="l00809"></a><span class="lineno">  809</span>&#160;    <span class="comment">// TODO</span></div><div class="line"><a name="l00810"></a><span class="lineno">  810</span>&#160;}</div><div class="line"><a name="l00811"></a><span class="lineno">  811</span>&#160;</div><div class="line"><a name="l00812"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#ac1b60be4b08de357c6a1aa0f8e1c0a9b">  812</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#ac1b60be4b08de357c6a1aa0f8e1c0a9b">ShipCADModel::moveFaces</a>(vector&lt;SubdivisionControlPoint*&gt;&amp; points,</div><div class="line"><a name="l00813"></a><span class="lineno">  813</span>&#160;                             <span class="keyword">const</span> QVector3D&amp; vec, <span class="keywordtype">bool</span> adjust_markers)</div><div class="line"><a name="l00814"></a><span class="lineno">  814</span>&#160;{</div><div class="line"><a name="l00815"></a><span class="lineno">  815</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;points.size(); i++) {</div><div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;        <span class="keywordflow">if</span> (!points[i]-&gt;isLocked())</div><div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160;            points[i]-&gt;setCoordinate(points[i]-&gt;getCoordinate() + vec);</div><div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160;    }</div><div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;    <span class="keywordflow">if</span> (points.size() == <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a994923f432129431b30d6b532059a6ab">numberOfControlPoints</a>()) {</div><div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160;        <span class="comment">// update main dimensions</span></div><div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;        <span class="keywordflow">if</span> (!<a class="code" href="classShipCAD_1_1ShipCADModel.html#a94a8eed8ac8ff4ad8287a0a1113e3271">getProjectSettings</a>().<a class="code" href="classShipCAD_1_1ProjectSettings.html#adddd4471a30e16aa3aca62bb8bee3b02">useDefaultMainframeLocation</a>())</div><div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160;            <a class="code" href="classShipCAD_1_1ShipCADModel.html#a94a8eed8ac8ff4ad8287a0a1113e3271">getProjectSettings</a>().<a class="code" href="classShipCAD_1_1ProjectSettings.html#acac72dbc1dc2f68c1d32981ac9a27603">setMainframeLocation</a>(</div><div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160;                        <a class="code" href="classShipCAD_1_1ShipCADModel.html#a94a8eed8ac8ff4ad8287a0a1113e3271">getProjectSettings</a>().getMainframeLocation() + vec.x());</div><div class="line"><a name="l00824"></a><span class="lineno">  824</span>&#160;        <span class="comment">// update stations buttocks and waterlines</span></div><div class="line"><a name="l00825"></a><span class="lineno">  825</span>&#160;        <a class="code" href="classPointerVector.html">IntersectionVector</a>&amp; stations = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a86da3ca66e90403ead21ccc67f584c52">getStations</a>();</div><div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;stations.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++)</div><div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;            stations.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#ac0b838a811f8df5c2fa0b0ea44ba4bb7">getPlane</a>().<a class="code" href="classShipCAD_1_1Plane.html#a5c3e18bcb1bb77563fd994866ba823df">setD</a>(stations.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#ac0b838a811f8df5c2fa0b0ea44ba4bb7">getPlane</a>().<a class="code" href="classShipCAD_1_1Plane.html#a7755d7967aae2e083c5d08fed49d9eef">d</a>() - vec.x());</div><div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160;        <a class="code" href="classPointerVector.html">IntersectionVector</a>&amp; waterlines = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6c147a75fa02e43145de346efb9542fd">getWaterlines</a>();</div><div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;waterlines.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++)</div><div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160;            waterlines.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#ac0b838a811f8df5c2fa0b0ea44ba4bb7">getPlane</a>().<a class="code" href="classShipCAD_1_1Plane.html#a5c3e18bcb1bb77563fd994866ba823df">setD</a>(waterlines.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#ac0b838a811f8df5c2fa0b0ea44ba4bb7">getPlane</a>().<a class="code" href="classShipCAD_1_1Plane.html#a7755d7967aae2e083c5d08fed49d9eef">d</a>() - vec.y());</div><div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160;        <a class="code" href="classPointerVector.html">IntersectionVector</a>&amp; buttocks = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a8908d7adff0b1aa1ed118103c02c5402">getButtocks</a>();</div><div class="line"><a name="l00832"></a><span class="lineno">  832</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;buttocks.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++)</div><div class="line"><a name="l00833"></a><span class="lineno">  833</span>&#160;            buttocks.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#ac0b838a811f8df5c2fa0b0ea44ba4bb7">getPlane</a>().<a class="code" href="classShipCAD_1_1Plane.html#a5c3e18bcb1bb77563fd994866ba823df">setD</a>(buttocks.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i)-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#ac0b838a811f8df5c2fa0b0ea44ba4bb7">getPlane</a>().<a class="code" href="classShipCAD_1_1Plane.html#a7755d7967aae2e083c5d08fed49d9eef">d</a>() - vec.z());</div><div class="line"><a name="l00834"></a><span class="lineno">  834</span>&#160;        <span class="keywordflow">if</span> (adjust_markers) {</div><div class="line"><a name="l00835"></a><span class="lineno">  835</span>&#160;            <a class="code" href="namespaceShipCAD.html#a880f36455b3b35823ae14bdd62e20b31">MarkerVectorIterator</a> itr = <a class="code" href="classShipCAD_1_1ShipCADModel.html#abc5faaa00b4b34bc1b0b1cd52af4ab3b">getMarkers</a>().<a class="code" href="classPointerVector.html#a594866129f2e9a3701c1f414ca3299e3">begin</a>();</div><div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;            <span class="keywordflow">for</span> (; itr!=<a class="code" href="classShipCAD_1_1ShipCADModel.html#abc5faaa00b4b34bc1b0b1cd52af4ab3b">getMarkers</a>().<a class="code" href="classPointerVector.html#a6182f5429c4c98ba2556d40484aab2f9">end</a>(); ++itr) {</div><div class="line"><a name="l00837"></a><span class="lineno">  837</span>&#160;                <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;(*itr)-&gt;numberOfPoints(); j++) {</div><div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160;                    (*itr)-&gt;setPoint(j, (*itr)-&gt;getPoint(j) + vec);</div><div class="line"><a name="l00839"></a><span class="lineno">  839</span>&#160;                }</div><div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160;            }</div><div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160;        }</div><div class="line"><a name="l00842"></a><span class="lineno">  842</span>&#160;    }</div><div class="line"><a name="l00843"></a><span class="lineno">  843</span>&#160;}</div><div class="line"><a name="l00844"></a><span class="lineno">  844</span>&#160;</div><div class="line"><a name="l00845"></a><span class="lineno">  845</span>&#160;<span class="comment">// FreeShipUnit.pas:10540</span></div><div class="line"><a name="l00846"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a83e2091e476b3ea89c75ecb25f46268b">  846</a></span>&#160;<a class="code" href="classShipCAD_1_1Intersection.html">Intersection</a>* <a class="code" href="classShipCAD_1_1ShipCADModel.html#a83e2091e476b3ea89c75ecb25f46268b">ShipCADModel::createIntersection</a>(<a class="code" href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fd">intersection_type_t</a> ty, <span class="keywordtype">float</span> distance)</div><div class="line"><a name="l00847"></a><span class="lineno">  847</span>&#160;{</div><div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160;    <a class="code" href="classPointerVector.html">IntersectionVector</a>* targetlist = 0;</div><div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;    <span class="keywordflow">switch</span>(ty) {</div><div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;    <span class="keywordflow">case</span> <a class="code" href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fdaf57b8e7252f2c55c001df410276926e3">fiStation</a>:</div><div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160;        targetlist = &amp;_stations;</div><div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;        <span class="keywordflow">break</span>;</div><div class="line"><a name="l00853"></a><span class="lineno">  853</span>&#160;    <span class="keywordflow">case</span> <a class="code" href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fda44c99d1edb96c2c22b5661d927eb9041">fiWaterline</a>:</div><div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160;        targetlist = &amp;_waterlines;</div><div class="line"><a name="l00855"></a><span class="lineno">  855</span>&#160;        <span class="keywordflow">break</span>;</div><div class="line"><a name="l00856"></a><span class="lineno">  856</span>&#160;    <span class="keywordflow">case</span> <a class="code" href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fdabcf8818401977200b532a1e18ec2df70">fiButtock</a>:</div><div class="line"><a name="l00857"></a><span class="lineno">  857</span>&#160;        targetlist = &amp;_buttocks;</div><div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160;        <span class="keywordflow">break</span>;</div><div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160;    <span class="keywordflow">case</span> <a class="code" href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fda5631b7711c628bad5c561953eaac2863">fiDiagonal</a>:</div><div class="line"><a name="l00860"></a><span class="lineno">  860</span>&#160;        targetlist = &amp;_diagonals;</div><div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160;        <span class="keywordflow">break</span>;</div><div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;    <span class="keywordflow">case</span> <a class="code" href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fda8e5e5dc412191234863fae2f98709477">fiFree</a>:</div><div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160;        <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00864"></a><span class="lineno">  864</span>&#160;    }</div><div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160;    <span class="comment">// check if an intersection already exists at this location</span></div><div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;targetlist-&gt;<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++) {</div><div class="line"><a name="l00867"></a><span class="lineno">  867</span>&#160;        <a class="code" href="classShipCAD_1_1Intersection.html">Intersection</a>* inter = targetlist-&gt;<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i);</div><div class="line"><a name="l00868"></a><span class="lineno">  868</span>&#160;        <span class="keywordflow">if</span> (abs(-(inter-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#ac0b838a811f8df5c2fa0b0ea44ba4bb7">getPlane</a>().<a class="code" href="classShipCAD_1_1Plane.html#a7755d7967aae2e083c5d08fed49d9eef">d</a>()) - distance) &lt; 1E-5) {</div><div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160;            <span class="comment">// it exists, don&#39;t make a new one</span></div><div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00871"></a><span class="lineno">  871</span>&#160;        }</div><div class="line"><a name="l00872"></a><span class="lineno">  872</span>&#160;    }</div><div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160;    <span class="comment">// add the new one</span></div><div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160;    <a class="code" href="classShipCAD_1_1Plane.html">Plane</a> pln;</div><div class="line"><a name="l00875"></a><span class="lineno">  875</span>&#160;    <span class="keywordflow">switch</span>(ty) {</div><div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;    <span class="keywordflow">case</span> <a class="code" href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fdaf57b8e7252f2c55c001df410276926e3">fiStation</a>:</div><div class="line"><a name="l00877"></a><span class="lineno">  877</span>&#160;        pln = <a class="code" href="classShipCAD_1_1Plane.html">Plane</a>(1.0, 0, 0, -distance);</div><div class="line"><a name="l00878"></a><span class="lineno">  878</span>&#160;        <span class="keywordflow">break</span>;</div><div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160;    <span class="keywordflow">case</span> <a class="code" href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fdabcf8818401977200b532a1e18ec2df70">fiButtock</a>:</div><div class="line"><a name="l00880"></a><span class="lineno">  880</span>&#160;        pln = <a class="code" href="classShipCAD_1_1Plane.html">Plane</a>(0, 1.0, 0, -distance);</div><div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160;        <span class="keywordflow">break</span>;</div><div class="line"><a name="l00882"></a><span class="lineno">  882</span>&#160;    <span class="keywordflow">case</span> <a class="code" href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fda44c99d1edb96c2c22b5661d927eb9041">fiWaterline</a>:</div><div class="line"><a name="l00883"></a><span class="lineno">  883</span>&#160;        pln = <a class="code" href="classShipCAD_1_1Plane.html">Plane</a>(0, 0, 1.0, -distance);</div><div class="line"><a name="l00884"></a><span class="lineno">  884</span>&#160;        <span class="keywordflow">break</span>;</div><div class="line"><a name="l00885"></a><span class="lineno">  885</span>&#160;    <span class="keywordflow">case</span> <a class="code" href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fda5631b7711c628bad5c561953eaac2863">fiDiagonal</a>:</div><div class="line"><a name="l00886"></a><span class="lineno">  886</span>&#160;        pln = <a class="code" href="classShipCAD_1_1Plane.html">Plane</a>(0, 1.0/sqrt(2.0), 1.0/sqrt(2.0), -(1.0/sqrt(2.0))*distance);</div><div class="line"><a name="l00887"></a><span class="lineno">  887</span>&#160;        <span class="keywordflow">break</span>;</div><div class="line"><a name="l00888"></a><span class="lineno">  888</span>&#160;    <span class="keywordflow">case</span> <a class="code" href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fda8e5e5dc412191234863fae2f98709477">fiFree</a>:</div><div class="line"><a name="l00889"></a><span class="lineno">  889</span>&#160;        <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00890"></a><span class="lineno">  890</span>&#160;    }</div><div class="line"><a name="l00891"></a><span class="lineno">  891</span>&#160;    <a class="code" href="classShipCAD_1_1Intersection.html">Intersection</a>* result = <span class="keyword">new</span> <a class="code" href="classShipCAD_1_1Intersection.html">Intersection</a>(<span class="keyword">this</span>, ty, pln, <span class="keyword">false</span>);</div><div class="line"><a name="l00892"></a><span class="lineno">  892</span>&#160;    result-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#aed30bdca43037f72b85c4d53e234fd6c">rebuild</a>();</div><div class="line"><a name="l00893"></a><span class="lineno">  893</span>&#160;    <span class="comment">// only add if an intersection has been found</span></div><div class="line"><a name="l00894"></a><span class="lineno">  894</span>&#160;    <span class="keywordflow">if</span> (result-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#a0092acbb149bb6a5c2e1f9a4b300c2da">getSplines</a>().<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>() == 0) {</div><div class="line"><a name="l00895"></a><span class="lineno">  895</span>&#160;        <span class="keyword">delete</span> result;</div><div class="line"><a name="l00896"></a><span class="lineno">  896</span>&#160;        <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00897"></a><span class="lineno">  897</span>&#160;    }</div><div class="line"><a name="l00898"></a><span class="lineno">  898</span>&#160;    targetlist-&gt;<a class="code" href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">add</a>(result);</div><div class="line"><a name="l00899"></a><span class="lineno">  899</span>&#160;    <a class="code" href="structShipCAD_1_1IntersectionSorter.html">IntersectionSorter</a> sorter;</div><div class="line"><a name="l00900"></a><span class="lineno">  900</span>&#160;    sort(targetlist-&gt;<a class="code" href="classPointerVector.html#a594866129f2e9a3701c1f414ca3299e3">begin</a>(), targetlist-&gt;<a class="code" href="classPointerVector.html#a6182f5429c4c98ba2556d40484aab2f9">end</a>(), sorter);</div><div class="line"><a name="l00901"></a><span class="lineno">  901</span>&#160;    <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00902"></a><span class="lineno">  902</span>&#160;}</div><div class="line"><a name="l00903"></a><span class="lineno">  903</span>&#160;</div><div class="line"><a name="l00904"></a><span class="lineno">  904</span>&#160;<span class="comment">// FreeShipUnit.pas:13056</span></div><div class="line"><a name="l00905"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a6be8a5765b6b9ee5b5dc0397bdd43be5">  905</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6be8a5765b6b9ee5b5dc0397bdd43be5">ShipCADModel::loadPreview</a>(<a class="code" href="classShipCAD_1_1FileBuffer.html">FileBuffer</a>&amp; source, QImage* image)</div><div class="line"><a name="l00906"></a><span class="lineno">  906</span>&#160;{</div><div class="line"><a name="l00907"></a><span class="lineno">  907</span>&#160;    <span class="comment">// remember the filename because it is erased by the clear method</span></div><div class="line"><a name="l00908"></a><span class="lineno">  908</span>&#160;    QString tmpstr = _filename;</div><div class="line"><a name="l00909"></a><span class="lineno">  909</span>&#160;    <a class="code" href="classShipCAD_1_1ShipCADModel.html#ad2f9dfd32667e9ac690de184b7e576f1">clear</a>();</div><div class="line"><a name="l00910"></a><span class="lineno">  910</span>&#160;    _filename = tmpstr;</div><div class="line"><a name="l00911"></a><span class="lineno">  911</span>&#160;    source.<a class="code" href="classShipCAD_1_1FileBuffer.html#af59c26297994b38aabc4bc678d04c246">reset</a>();</div><div class="line"><a name="l00912"></a><span class="lineno">  912</span>&#160;    QString hdr;</div><div class="line"><a name="l00913"></a><span class="lineno">  913</span>&#160;    source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(hdr);</div><div class="line"><a name="l00914"></a><span class="lineno">  914</span>&#160;    <span class="keywordflow">if</span> (hdr == <span class="stringliteral">&quot;FREE!ship&quot;</span>) {</div><div class="line"><a name="l00915"></a><span class="lineno">  915</span>&#160;        quint8 v;</div><div class="line"><a name="l00916"></a><span class="lineno">  916</span>&#160;        source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(v);</div><div class="line"><a name="l00917"></a><span class="lineno">  917</span>&#160;        _file_version = <span class="keyword">static_cast&lt;</span><a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694f">version_t</a><span class="keyword">&gt;</span>(v);</div><div class="line"><a name="l00918"></a><span class="lineno">  918</span>&#160;        <span class="keywordflow">if</span> (_file_version &gt;= <a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694fa067802fee608eba024414f07e484bd69">fv210</a>) {</div><div class="line"><a name="l00919"></a><span class="lineno">  919</span>&#160;            quint32 n;</div><div class="line"><a name="l00920"></a><span class="lineno">  920</span>&#160;            source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(n);</div><div class="line"><a name="l00921"></a><span class="lineno">  921</span>&#160;            _precision = <span class="keyword">static_cast&lt;</span><a class="code" href="namespaceShipCAD.html#ae13c7e36dfb1e2300741a631041cd915">precision_t</a><span class="keyword">&gt;</span>(n);</div><div class="line"><a name="l00922"></a><span class="lineno">  922</span>&#160;            _vis.loadBinary(source);</div><div class="line"><a name="l00923"></a><span class="lineno">  923</span>&#160;            _settings.loadBinary(source, image);</div><div class="line"><a name="l00924"></a><span class="lineno">  924</span>&#160;        }</div><div class="line"><a name="l00925"></a><span class="lineno">  925</span>&#160;    }</div><div class="line"><a name="l00926"></a><span class="lineno">  926</span>&#160;}</div><div class="line"><a name="l00927"></a><span class="lineno">  927</span>&#160;</div><div class="line"><a name="l00928"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#ad3e49bc04c73dc221e48d15974b68f41">  928</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#ad3e49bc04c73dc221e48d15974b68f41">ShipCADModel::loadBinary</a>(<a class="code" href="classShipCAD_1_1FileBuffer.html">FileBuffer</a>&amp; source)</div><div class="line"><a name="l00929"></a><span class="lineno">  929</span>&#160;{</div><div class="line"><a name="l00930"></a><span class="lineno">  930</span>&#160;    <span class="comment">// remember the filename because it is erased by the clear method</span></div><div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;    QString tmpstr = _filename;</div><div class="line"><a name="l00932"></a><span class="lineno">  932</span>&#160;    <a class="code" href="classShipCAD_1_1ShipCADModel.html#ad2f9dfd32667e9ac690de184b7e576f1">clear</a>();</div><div class="line"><a name="l00933"></a><span class="lineno">  933</span>&#160;    _filename = tmpstr;</div><div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160;    source.<a class="code" href="classShipCAD_1_1FileBuffer.html#af59c26297994b38aabc4bc678d04c246">reset</a>();</div><div class="line"><a name="l00935"></a><span class="lineno">  935</span>&#160;    QString hdr;</div><div class="line"><a name="l00936"></a><span class="lineno">  936</span>&#160;    source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(hdr);</div><div class="line"><a name="l00937"></a><span class="lineno">  937</span>&#160;    <span class="keywordflow">if</span> (hdr == <span class="stringliteral">&quot;FREE!ship&quot;</span>) {</div><div class="line"><a name="l00938"></a><span class="lineno">  938</span>&#160;        quint8 v, cver;</div><div class="line"><a name="l00939"></a><span class="lineno">  939</span>&#160;        source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(v);</div><div class="line"><a name="l00940"></a><span class="lineno">  940</span>&#160;        _file_version = <span class="keyword">static_cast&lt;</span><a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694f">version_t</a><span class="keyword">&gt;</span>(v);</div><div class="line"><a name="l00941"></a><span class="lineno">  941</span>&#160;        cver = <span class="keyword">static_cast&lt;</span>quint8<span class="keyword">&gt;</span>(<a class="code" href="namespaceShipCAD.html#aa3415e1acf9bdb19e24f31f5138d6a60">k_current_version</a>);</div><div class="line"><a name="l00942"></a><span class="lineno">  942</span>&#160;        source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a66c14f8f21b9f77febd154aee9565f0b">setVersion</a>(_file_version);</div><div class="line"><a name="l00943"></a><span class="lineno">  943</span>&#160;        <span class="keywordflow">if</span> (_file_version &lt;= cver) {</div><div class="line"><a name="l00944"></a><span class="lineno">  944</span>&#160;            quint32 n;</div><div class="line"><a name="l00945"></a><span class="lineno">  945</span>&#160;            source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(n);</div><div class="line"><a name="l00946"></a><span class="lineno">  946</span>&#160;            _precision = <span class="keyword">static_cast&lt;</span><a class="code" href="namespaceShipCAD.html#ae13c7e36dfb1e2300741a631041cd915">precision_t</a><span class="keyword">&gt;</span>(n);</div><div class="line"><a name="l00947"></a><span class="lineno">  947</span>&#160;            _vis.loadBinary(source);</div><div class="line"><a name="l00948"></a><span class="lineno">  948</span>&#160;            _settings.loadBinary(source, <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00949"></a><span class="lineno">  949</span>&#160;            <span class="comment">// load the subdivision surface</span></div><div class="line"><a name="l00950"></a><span class="lineno">  950</span>&#160;            _surface.loadBinary(source);</div><div class="line"><a name="l00951"></a><span class="lineno">  951</span>&#160;            <span class="comment">// stations</span></div><div class="line"><a name="l00952"></a><span class="lineno">  952</span>&#160;            source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(n);</div><div class="line"><a name="l00953"></a><span class="lineno">  953</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;n; i++) {</div><div class="line"><a name="l00954"></a><span class="lineno">  954</span>&#160;                <a class="code" href="classShipCAD_1_1Intersection.html">Intersection</a>* intersection = <span class="keyword">new</span> <a class="code" href="classShipCAD_1_1Intersection.html">Intersection</a>(<span class="keyword">this</span>);</div><div class="line"><a name="l00955"></a><span class="lineno">  955</span>&#160;                intersection-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#a3e87aa28a1e1d721fe657a73d5466f3b">loadBinary</a>(source);</div><div class="line"><a name="l00956"></a><span class="lineno">  956</span>&#160;                _stations.add(intersection);</div><div class="line"><a name="l00957"></a><span class="lineno">  957</span>&#160;            }</div><div class="line"><a name="l00958"></a><span class="lineno">  958</span>&#160;            <span class="comment">// buttocks</span></div><div class="line"><a name="l00959"></a><span class="lineno">  959</span>&#160;            source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(n);</div><div class="line"><a name="l00960"></a><span class="lineno">  960</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;n; i++) {</div><div class="line"><a name="l00961"></a><span class="lineno">  961</span>&#160;                <a class="code" href="classShipCAD_1_1Intersection.html">Intersection</a>* intersection = <span class="keyword">new</span> <a class="code" href="classShipCAD_1_1Intersection.html">Intersection</a>(<span class="keyword">this</span>);</div><div class="line"><a name="l00962"></a><span class="lineno">  962</span>&#160;                intersection-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#a3e87aa28a1e1d721fe657a73d5466f3b">loadBinary</a>(source);</div><div class="line"><a name="l00963"></a><span class="lineno">  963</span>&#160;                _buttocks.add(intersection);</div><div class="line"><a name="l00964"></a><span class="lineno">  964</span>&#160;            }</div><div class="line"><a name="l00965"></a><span class="lineno">  965</span>&#160;            <span class="comment">// waterlines</span></div><div class="line"><a name="l00966"></a><span class="lineno">  966</span>&#160;            source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(n);</div><div class="line"><a name="l00967"></a><span class="lineno">  967</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;n; i++) {</div><div class="line"><a name="l00968"></a><span class="lineno">  968</span>&#160;                <a class="code" href="classShipCAD_1_1Intersection.html">Intersection</a>* intersection = <span class="keyword">new</span> <a class="code" href="classShipCAD_1_1Intersection.html">Intersection</a>(<span class="keyword">this</span>);</div><div class="line"><a name="l00969"></a><span class="lineno">  969</span>&#160;                intersection-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#a3e87aa28a1e1d721fe657a73d5466f3b">loadBinary</a>(source);</div><div class="line"><a name="l00970"></a><span class="lineno">  970</span>&#160;                _waterlines.add(intersection);</div><div class="line"><a name="l00971"></a><span class="lineno">  971</span>&#160;            }</div><div class="line"><a name="l00972"></a><span class="lineno">  972</span>&#160;            <span class="keywordflow">if</span> (_file_version &gt;= <a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694fad37dee2f48dd8e2dacbb6ffb3928c7ea">fv180</a>) {</div><div class="line"><a name="l00973"></a><span class="lineno">  973</span>&#160;                <span class="comment">// diagonals</span></div><div class="line"><a name="l00974"></a><span class="lineno">  974</span>&#160;                source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(n);</div><div class="line"><a name="l00975"></a><span class="lineno">  975</span>&#160;                <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;n; i++) {</div><div class="line"><a name="l00976"></a><span class="lineno">  976</span>&#160;                    <a class="code" href="classShipCAD_1_1Intersection.html">Intersection</a>* intersection = <span class="keyword">new</span> <a class="code" href="classShipCAD_1_1Intersection.html">Intersection</a>(<span class="keyword">this</span>);</div><div class="line"><a name="l00977"></a><span class="lineno">  977</span>&#160;                    intersection-&gt;<a class="code" href="classShipCAD_1_1Intersection.html#a3e87aa28a1e1d721fe657a73d5466f3b">loadBinary</a>(source);</div><div class="line"><a name="l00978"></a><span class="lineno">  978</span>&#160;                    _diagonals.add(intersection);</div><div class="line"><a name="l00979"></a><span class="lineno">  979</span>&#160;                }</div><div class="line"><a name="l00980"></a><span class="lineno">  980</span>&#160;                <span class="keywordflow">if</span> (_file_version &gt;= <a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694fa155bf0424294686430a251fed7e7cb83">fv191</a>) {</div><div class="line"><a name="l00981"></a><span class="lineno">  981</span>&#160;                    <span class="comment">// markers</span></div><div class="line"><a name="l00982"></a><span class="lineno">  982</span>&#160;                    source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(n);</div><div class="line"><a name="l00983"></a><span class="lineno">  983</span>&#160;                    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;n; i++) {</div><div class="line"><a name="l00984"></a><span class="lineno">  984</span>&#160;                        <a class="code" href="classShipCAD_1_1Marker.html">Marker</a>* marker = <span class="keyword">new</span> <a class="code" href="classShipCAD_1_1Marker.html">Marker</a>(<span class="keyword">this</span>);</div><div class="line"><a name="l00985"></a><span class="lineno">  985</span>&#160;                        marker-&gt;<a class="code" href="classShipCAD_1_1Marker.html#a0f2aa7cd6bae40784c077b89d5ebdb50">loadBinary</a>(source);</div><div class="line"><a name="l00986"></a><span class="lineno">  986</span>&#160;                        _markers.add(marker);</div><div class="line"><a name="l00987"></a><span class="lineno">  987</span>&#160;                    }</div><div class="line"><a name="l00988"></a><span class="lineno">  988</span>&#160;                    <span class="keywordflow">if</span> (_file_version &gt;= <a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694fa067802fee608eba024414f07e484bd69">fv210</a>) {</div><div class="line"><a name="l00989"></a><span class="lineno">  989</span>&#160;                        source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(&amp;_delft_resistance);</div><div class="line"><a name="l00990"></a><span class="lineno">  990</span>&#160;                        source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(&amp;_kaper_resistance);</div><div class="line"><a name="l00991"></a><span class="lineno">  991</span>&#160;                        <span class="keywordflow">if</span> (_file_version &gt;= <a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694fa528cae12d19cf6d3b76e6f2b6ef25a61">fv250</a>) {</div><div class="line"><a name="l00992"></a><span class="lineno">  992</span>&#160;                            source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(n);</div><div class="line"><a name="l00993"></a><span class="lineno">  993</span>&#160;                            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;n; i++) {</div><div class="line"><a name="l00994"></a><span class="lineno">  994</span>&#160;                                <a class="code" href="classShipCAD_1_1BackgroundImage.html">BackgroundImage</a>* img = <span class="keyword">new</span> <a class="code" href="classShipCAD_1_1BackgroundImage.html">BackgroundImage</a>(<span class="keyword">this</span>);</div><div class="line"><a name="l00995"></a><span class="lineno">  995</span>&#160;                                _background_images.add(img);</div><div class="line"><a name="l00996"></a><span class="lineno">  996</span>&#160;                                img-&gt;<a class="code" href="classShipCAD_1_1BackgroundImage.html#a72abed6b5cdbd287ec41c817acf84de9">loadBinary</a>(source);</div><div class="line"><a name="l00997"></a><span class="lineno">  997</span>&#160;                            }</div><div class="line"><a name="l00998"></a><span class="lineno">  998</span>&#160;                            source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(n);</div><div class="line"><a name="l00999"></a><span class="lineno">  999</span>&#160;                            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;n; i++) {</div><div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>&#160;                                <a class="code" href="classShipCAD_1_1Flowline.html">Flowline</a>* flow = <a class="code" href="classShipCAD_1_1Flowline.html#a9a07b50a90e9d96d347583dc15b5d07e">Flowline::construct</a>(<span class="keyword">this</span>);</div><div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>&#160;                                _flowlines.add(flow);</div><div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>&#160;                                flow-&gt;<a class="code" href="classShipCAD_1_1Flowline.html#a2910767b8fc3beb218d84bbb9d35fd7d">loadBinary</a>(source);</div><div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>&#160;                            }</div><div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>&#160;                        }</div><div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>&#160;                    }</div><div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>&#160;                }</div><div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>&#160;            }</div><div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>&#160;        }</div><div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>&#160;        <span class="keywordflow">else</span> {</div><div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>&#160;            <span class="comment">// TODO version is later than this can handle</span></div><div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>&#160;        }</div><div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>&#160;    }</div><div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>&#160;    <span class="keywordflow">else</span> {</div><div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>&#160;        <span class="comment">// TODO this is not a free ship binary file</span></div><div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>&#160;    }</div><div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>&#160;    _file_changed = <span class="keyword">false</span>;</div><div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>&#160;    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a1b27573aab3a458f9002a7e4e327736a">rebuildModel</a>(<span class="keyword">false</span>);</div><div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>&#160;}</div><div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>&#160;</div><div class="line"><a name="l01020"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a64c7c4ddffffdd1be2f27eb4210af2b7"> 1020</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a64c7c4ddffffdd1be2f27eb4210af2b7">ShipCADModel::saveBinary</a>(<a class="code" href="classShipCAD_1_1FileBuffer.html">FileBuffer</a>&amp; dest)</div><div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>&#160;{</div><div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>&#160;    dest.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(<span class="stringliteral">&quot;FREE!ship&quot;</span>);</div><div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>&#160;    dest.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(static_cast&lt;quint8&gt;(_file_version));</div><div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>&#160;    dest.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(static_cast&lt;quint32&gt;(_precision));</div><div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>&#160;    _vis.saveBinary(dest);      <span class="comment">// starting at offset hex 76 freeship and ours differ</span></div><div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>&#160;    _settings.saveBinary(dest);</div><div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>&#160;    _surface.saveBinary(dest);</div><div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>&#160;    <span class="comment">// save stations</span></div><div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>&#160;    dest.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(_stations.size());</div><div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_stations.size(); i++)</div><div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>&#160;        _stations.get(i)-&gt;saveBinary(dest);</div><div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>&#160;    <span class="comment">// save buttocks</span></div><div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>&#160;    dest.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(_buttocks.size());</div><div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_buttocks.size(); i++)</div><div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>&#160;        _buttocks.get(i)-&gt;saveBinary(dest);</div><div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>&#160;    <span class="comment">// save waterlines</span></div><div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>&#160;    dest.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(_waterlines.size());</div><div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_waterlines.size(); i++)</div><div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>&#160;        _waterlines.get(i)-&gt;saveBinary(dest);</div><div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1ShipCADModel.html#a837f41ecb002cd0e197d365edbef3d52">getFileVersion</a>() &gt;= <a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694fad37dee2f48dd8e2dacbb6ffb3928c7ea">fv180</a>) {</div><div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>&#160;        <span class="comment">// save diagonals</span></div><div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>&#160;        dest.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(_diagonals.size());</div><div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_diagonals.size(); i++)</div><div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>&#160;            _diagonals.get(i)-&gt;saveBinary(dest);</div><div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1ShipCADModel.html#a837f41ecb002cd0e197d365edbef3d52">getFileVersion</a>() &gt;= <a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694fa155bf0424294686430a251fed7e7cb83">fv191</a>) {</div><div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>&#160;            <span class="comment">// save markers</span></div><div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>&#160;            dest.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(_markers.size());</div><div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_markers.size(); i++)</div><div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>&#160;                _markers.get(i)-&gt;saveBinary(dest);</div><div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1ShipCADModel.html#a837f41ecb002cd0e197d365edbef3d52">getFileVersion</a>() &gt;= <a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694fa067802fee608eba024414f07e484bd69">fv210</a>) {</div><div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>&#160;                dest.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(&amp;_delft_resistance);</div><div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>&#160;                dest.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(&amp;_kaper_resistance);</div><div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1ShipCADModel.html#a837f41ecb002cd0e197d365edbef3d52">getFileVersion</a>() &gt;= <a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694fa528cae12d19cf6d3b76e6f2b6ef25a61">fv250</a>) {</div><div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>&#160;                    dest.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(_background_images.size());</div><div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>&#160;                    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_background_images.size(); i++)</div><div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>&#160;                        _background_images.get(i)-&gt;saveBinary(dest);</div><div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>&#160;                    dest.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(_flowlines.size());</div><div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>&#160;                    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_flowlines.size(); i++)</div><div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>&#160;                        _flowlines.get(i)-&gt;saveBinary(dest);</div><div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>&#160;                }</div><div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>&#160;            }</div><div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>&#160;        }</div><div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>&#160;    }</div><div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>&#160;}</div><div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>&#160;</div><div class="line"><a name="l01066"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#ab16487a794947608cace81a06552b2b1"> 1066</a></span>&#160;<span class="keywordtype">float</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#ab16487a794947608cace81a06552b2b1">ShipCADModel::findLowestHydrostaticsPoint</a>()<span class="keyword"> const</span></div><div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>&#160;    <span class="keywordtype">float</span> result = _surface.getMin().z();</div><div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>&#160;    <span class="keywordtype">bool</span> first = <span class="keyword">true</span>;</div><div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_surface.numberOfLayers(); i++) {</div><div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>&#160;        <span class="keyword">const</span> <a class="code" href="classShipCAD_1_1SubdivisionLayer.html">SubdivisionLayer</a>* layer = _surface.getLayer(i);</div><div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>&#160;        <span class="keywordflow">if</span> (layer-&gt;<a class="code" href="classShipCAD_1_1SubdivisionLayer.html#a1d2811b35f699b4eda6a08b543863096">useInHydrostatics</a>()) {</div><div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;layer-&gt;<a class="code" href="classShipCAD_1_1SubdivisionLayer.html#ad0d77de06b53814e248fc9bbfa908252">numberOfFaces</a>(); j++) {</div><div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>&#160;                <span class="keywordflow">if</span> (first) {</div><div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>&#160;                    result = layer-&gt;<a class="code" href="classShipCAD_1_1SubdivisionLayer.html#a2e1538a000268fe5f56bf2bea4973c23">getFace</a>(j)-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlFace.html#a9e205ab09b4660ab2b5377afaa620cd6">getMin</a>().z();</div><div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>&#160;                    first = <span class="keyword">false</span>;</div><div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>&#160;                } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (layer-&gt;<a class="code" href="classShipCAD_1_1SubdivisionLayer.html#a2e1538a000268fe5f56bf2bea4973c23">getFace</a>(j)-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlFace.html#a9e205ab09b4660ab2b5377afaa620cd6">getMin</a>().z() &lt; result) {</div><div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>&#160;                    result = layer-&gt;<a class="code" href="classShipCAD_1_1SubdivisionLayer.html#a2e1538a000268fe5f56bf2bea4973c23">getFace</a>(j)-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlFace.html#a9e205ab09b4660ab2b5377afaa620cd6">getMin</a>().z();</div><div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>&#160;                }</div><div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>&#160;            }</div><div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>&#160;        }</div><div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>&#160;    }</div><div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>&#160;    <span class="keywordflow">return</span> result;</div><div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>&#160;}</div><div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>&#160;</div><div class="line"><a name="l01086"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a44ac7a48c0c01cae73bf723120071e72"> 1086</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a44ac7a48c0c01cae73bf723120071e72">ShipCADModel::setFileVersion</a>(<a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694f">version_t</a> v)</div><div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>&#160;{</div><div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>&#160;    <span class="keywordflow">if</span> (v != _file_version) {</div><div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>&#160;        _file_version = v;</div><div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#ae8fe6d69df313f7459235de1a0614e8c">setFileChanged</a>(<span class="keyword">true</span>);</div><div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>&#160;    }</div><div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>&#160;}</div><div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>&#160;</div><div class="line"><a name="l01094"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#ac7aabd58923105ec36b27d44d747aa42"> 1094</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#ac7aabd58923105ec36b27d44d747aa42">ShipCADModel::isSelectedMarker</a>(<a class="code" href="classShipCAD_1_1Marker.html">Marker</a>* mark)<span class="keyword"> const</span></div><div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>&#160;    <span class="keywordflow">return</span> find(_selected_markers.begin(),</div><div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>&#160;                _selected_markers.end(), mark) != _selected_markers.end();</div><div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>&#160;}</div><div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>&#160;</div><div class="line"><a name="l01100"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#afd7e984f4070d08cb16264c1b731580f"> 1100</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#afd7e984f4070d08cb16264c1b731580f">ShipCADModel::setSelectedMarker</a>(<a class="code" href="classShipCAD_1_1Marker.html">Marker</a>* mark)</div><div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>&#160;{</div><div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>&#160;    _selected_markers.insert(mark);</div><div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>&#160;}</div><div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>&#160;</div><div class="line"><a name="l01105"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a7fb06b0a1fa75ef02597752fc3f691a2"> 1105</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a7fb06b0a1fa75ef02597752fc3f691a2">ShipCADModel::removeSelectedMarker</a>(<a class="code" href="classShipCAD_1_1Marker.html">Marker</a>* mark)</div><div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>&#160;{</div><div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>&#160;    set&lt;Marker*&gt;::iterator i = find(</div><div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>&#160;        _selected_markers.begin(),</div><div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>&#160;        _selected_markers.end(), mark);</div><div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>&#160;    <span class="keywordflow">if</span> (i != _selected_markers.end())</div><div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>&#160;        _selected_markers.erase(i);</div><div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>&#160;}</div><div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>&#160;</div><div class="line"><a name="l01114"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#ac7fd2d6607f589a20444f3efb8fde63b"> 1114</a></span>&#160;<a class="code" href="classShipCAD_1_1Marker.html">Marker</a>* <a class="code" href="classShipCAD_1_1ShipCADModel.html#ac7fd2d6607f589a20444f3efb8fde63b">ShipCADModel::addMarker</a>()</div><div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>&#160;{</div><div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>&#160;    <a class="code" href="classShipCAD_1_1Marker.html">Marker</a> *mark = <a class="code" href="classShipCAD_1_1Marker.html#af505b0f8f0aa9049fd65a7f9b675abbc">Marker::construct</a>(<span class="keyword">this</span>);</div><div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>&#160;    _markers.add(mark);</div><div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>&#160;    <span class="keywordflow">return</span> mark;</div><div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>&#160;}</div><div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>&#160;</div><div class="line"><a name="l01121"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a2e6888d7b5e8d6346286d0262a93a183"> 1121</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a2e6888d7b5e8d6346286d0262a93a183">ShipCADModel::deleteMarker</a>(<a class="code" href="classShipCAD_1_1Marker.html">Marker</a>* mark)</div><div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>&#160;{</div><div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>&#160;    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a7fb06b0a1fa75ef02597752fc3f691a2">removeSelectedMarker</a>(mark);</div><div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>&#160;    _markers.del(mark);</div><div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>&#160;}</div><div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>&#160;</div><div class="line"><a name="l01127"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a73494d53c57b4401f59f3feb3d73941b"> 1127</a></span>&#160;<a class="code" href="classShipCAD_1_1Flowline.html">Flowline</a>* <a class="code" href="classShipCAD_1_1ShipCADModel.html#a73494d53c57b4401f59f3feb3d73941b">ShipCADModel::addFlowline</a>(<span class="keyword">const</span> QVector2D&amp; pt, <a class="code" href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0a">viewport_type_t</a> ty)</div><div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>&#160;{</div><div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>&#160;    <a class="code" href="classShipCAD_1_1Flowline.html">Flowline</a>* flowline = <a class="code" href="classShipCAD_1_1Flowline.html#a9a07b50a90e9d96d347583dc15b5d07e">Flowline::construct</a>(<span class="keyword">this</span>);</div><div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>&#160;    flowline-&gt;<a class="code" href="classShipCAD_1_1Flowline.html#a58832002dec0b6ee8cb59e2fcc33f056">initialize</a>(pt, ty);</div><div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>&#160;    flowline-&gt;<a class="code" href="classShipCAD_1_1Flowline.html#a28e5d73316c6d2c8005428669a9e9b97">rebuild</a>();</div><div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>&#160;    <span class="keywordflow">if</span> (flowline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa15d52dbfa55ec3b1ec272104a45ebd5">numberOfPoints</a>() == 0) {</div><div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>&#160;        <span class="keyword">delete</span> flowline;</div><div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>&#160;        flowline = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>&#160;    } <span class="keywordflow">else</span></div><div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>&#160;        _flowlines.<a class="code" href="classShipCAD_1_1Spline.html#ac3d9f4514573be91b316413bf062791a">add</a>(flowline);</div><div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>&#160;    <span class="keywordflow">return</span> flowline;</div><div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>&#160;}</div><div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>&#160;</div><div class="line"><a name="l01140"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#afcac043bc1d1c627e95ca1bc4aa0174e"> 1140</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#afcac043bc1d1c627e95ca1bc4aa0174e">ShipCADModel::isSelectedFlowline</a>(<a class="code" href="classShipCAD_1_1Flowline.html">Flowline</a>* flow)<span class="keyword"> const</span></div><div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>&#160;    <span class="keywordflow">return</span> find(_selected_flowlines.begin(), _selected_flowlines.end(), flow) !=</div><div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>&#160;        _selected_flowlines.end();</div><div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>&#160;}</div><div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>&#160;</div><div class="line"><a name="l01146"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a33962f53b44136c2840f8f7fa2e362f3"> 1146</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a33962f53b44136c2840f8f7fa2e362f3">ShipCADModel::setSelectedFlowline</a>(<a class="code" href="classShipCAD_1_1Flowline.html">Flowline</a>* flow)</div><div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>&#160;{</div><div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>&#160;    _selected_flowlines.insert(flow);</div><div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>&#160;}</div><div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>&#160;</div><div class="line"><a name="l01151"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a341f8be57a7cf6c04356a731b3b30c37"> 1151</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a341f8be57a7cf6c04356a731b3b30c37">ShipCADModel::removeSelectedFlowline</a>(<a class="code" href="classShipCAD_1_1Flowline.html">Flowline</a>* flow)</div><div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>&#160;{</div><div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>&#160;    set&lt;Flowline*&gt;::iterator i = _selected_flowlines.find(flow);</div><div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>&#160;    <span class="keywordflow">if</span> (i != _selected_flowlines.end())</div><div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>&#160;        _selected_flowlines.erase(i);</div><div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>&#160;}</div><div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>&#160;</div><div class="line"><a name="l01158"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a7777da02744250aebce9be35063ba0f5"> 1158</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a7777da02744250aebce9be35063ba0f5">ShipCADModel::deleteFlowline</a>(<a class="code" href="classShipCAD_1_1Flowline.html">Flowline</a>* flow)</div><div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>&#160;{</div><div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>&#160;    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a341f8be57a7cf6c04356a731b3b30c37">removeSelectedFlowline</a>(flow);</div><div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>&#160;    _flowlines.del(flow);</div><div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>&#160;}</div><div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>&#160;</div><div class="line"><a name="l01164"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a83dbf01267c7736a8676336785178db6"> 1164</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a83dbf01267c7736a8676336785178db6">ShipCADModel::deleteSelected</a>()</div><div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>&#160;{</div><div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>&#160;    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a362b063921c6441d8e91935226062ed5">deleteSelected</a>();</div><div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>&#160;    set&lt;Marker*&gt;::iterator i = _selected_markers.begin();</div><div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>&#160;    <span class="keywordflow">for</span> (; i!=_selected_markers.end(); ++i)</div><div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#a2e6888d7b5e8d6346286d0262a93a183">deleteMarker</a>(*i);</div><div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>&#160;    set&lt;Flowline*&gt;::iterator j = _selected_flowlines.begin();</div><div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>&#160;    <span class="keywordflow">for</span>(; j!=_selected_flowlines.end(); ++j)</div><div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#a7777da02744250aebce9be35063ba0f5">deleteFlowline</a>(*j);</div><div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>&#160;}</div><div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>&#160;</div><div class="line"><a name="l01175"></a><span class="lineno"><a class="line" href="shipcadmodel_8cpp.html#a757b6d0d8ecafdb202c84d8aa65aefd1"> 1175</a></span>&#160;<span class="keywordtype">float</span> <a class="code" href="shipcadmodel_8cpp.html#a757b6d0d8ecafdb202c84d8aa65aefd1">new_model_pts</a>[] = {</div><div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>&#160;    <span class="comment">// station 0, stern</span></div><div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>&#160;    0.00000,0.00000,1.56754,</div><div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>&#160;    0.00000,0.05280,1.59170,</div><div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>&#160;    0.00000,0.22171,1.77284,</div><div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>&#160;    0.00000,0.28506,2.64108,</div><div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>&#160;    0.00000,0.29135,3.48932,</div><div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>&#160;    <span class="comment">// station 1</span></div><div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>&#160;    0.20880,0.00000,0.49656,</div><div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>&#160;    0.20881,0.18796,0.53622,</div><div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>&#160;    0.20880,0.33700,0.97840,</div><div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>&#160;    0.20880,0.45607,2.05422,</div><div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>&#160;    0.20882,0.47184,3.44280,</div><div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>&#160;    <span class="comment">// station 2</span></div><div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>&#160;    0.41765,0.00000,0.00000,</div><div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>&#160;    0.41765,0.23565,0.07524,</div><div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>&#160;    0.41765,0.41555,0.67735,</div><div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>&#160;    0.41765,0.49421,1.91004,</div><div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>&#160;    0.41737,0.51468,3.45474,</div><div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>&#160;    <span class="comment">// station 3</span></div><div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>&#160;    0.58471,0.00000,0.00000,</div><div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>&#160;    0.58472,0.24072,0.02507,</div><div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>&#160;    0.58472,0.39528,0.71080,</div><div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>&#160;    0.58488,0.45356,2.04881,</div><div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>&#160;    0.58472,0.46756,3.54662,</div><div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>&#160;    <span class="comment">// station 4</span></div><div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>&#160;    0.75179,0.00000,0.28284,</div><div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>&#160;    0.75178,0.13715,0.44098,</div><div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>&#160;    0.75179,0.20950,0.87760,</div><div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>&#160;    0.75179,0.30538,2.38232,</div><div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>&#160;    0.75177,0.34473,3.67786,</div><div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>&#160;    <span class="comment">// station 5</span></div><div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>&#160;    0.90672,0.00000,0.81860,</div><div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>&#160;    0.90681,0.01887,0.98650,</div><div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>&#160;    0.90658,0.04671,1.29873,</div><div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>&#160;    0.90637,0.11195,2.83107,</div><div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>&#160;    0.90672,0.14523,3.81697,</div><div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>&#160;    <span class="comment">// station 6, stem</span></div><div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>&#160;    0.91580,0.00000,0.85643,</div><div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>&#160;    0.92562,0.00000,1.17444,</div><div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>&#160;    0.93387,0.00000,1.44618,</div><div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>&#160;    0.97668,0.00000,3.03482,</div><div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>&#160;    1.00000,0.00000,3.91366</div><div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>&#160;};</div><div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>&#160;</div><div class="line"><a name="l01220"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#adcf0db573afa7c865de68d0b36d41f15"> 1220</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#adcf0db573afa7c865de68d0b36d41f15">ShipCADModel::newModel</a>(<a class="code" href="namespaceShipCAD.html#ac6a7a28b4b063771afae92decb602da5">unit_type_t</a> units,</div><div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>&#160;                            <span class="keywordtype">float</span> length, <span class="keywordtype">float</span> breadth, <span class="keywordtype">float</span> draft,</div><div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>&#160;                            <span class="keywordtype">size_t</span> rows, <span class="keywordtype">size_t</span> cols)</div><div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>&#160;{</div><div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>&#160;    <a class="code" href="classShipCAD_1_1ShipCADModel.html#ad2f9dfd32667e9ac690de184b7e576f1">clear</a>();</div><div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>&#160;</div><div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>&#160;    _settings.setLength(length);</div><div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>&#160;    _settings.setBeam(breadth);</div><div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>&#160;    _settings.setDraft(draft);</div><div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>&#160;    _settings.setUnits(units);</div><div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>&#160;    </div><div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>&#160;    <span class="comment">// create temporary splines</span></div><div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>&#160;    <a class="code" href="classPointerVector.html">SplineVector</a> trvsplines(<span class="keyword">true</span>);</div><div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>&#160;    <span class="comment">// first create temporary splines in transverse direction</span></div><div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;7; i++) {</div><div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>&#160;        <a class="code" href="classShipCAD_1_1Spline.html">Spline</a>* spline = <span class="keyword">new</span> <a class="code" href="classShipCAD_1_1Spline.html">Spline</a>();</div><div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;5; j++) {</div><div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>&#160;            QVector3D p(<a class="code" href="shipcadmodel_8cpp.html#a757b6d0d8ecafdb202c84d8aa65aefd1">new_model_pts</a>[i*15+j*3],</div><div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>&#160;                    <a class="code" href="shipcadmodel_8cpp.html#a757b6d0d8ecafdb202c84d8aa65aefd1">new_model_pts</a>[i*15+j*3+1],</div><div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>&#160;                    <a class="code" href="shipcadmodel_8cpp.html#a757b6d0d8ecafdb202c84d8aa65aefd1">new_model_pts</a>[i*15+j*3+2]);</div><div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>&#160;            p.setX(p.x() * length);</div><div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>&#160;            p.setY(p.y() * breadth);</div><div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>&#160;            p.setZ(p.z() * draft);</div><div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>&#160;            spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#ac3d9f4514573be91b316413bf062791a">add</a>(p);</div><div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>&#160;        }</div><div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>&#160;        trvsplines.<a class="code" href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">add</a>(spline);</div><div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>&#160;    }</div><div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>&#160;    <span class="comment">// now create temporary splines in longitudinal direction</span></div><div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>&#160;    vector&lt;vector&lt;SubdivisionControlPoint*&gt; &gt; pts;</div><div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>&#160;    <a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html">SubdivisionControlPoint</a>* stem_point = 0;</div><div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;=rows; i++) {</div><div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>&#160;        <a class="code" href="classShipCAD_1_1Spline.html">Spline</a> spline2;</div><div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;trvsplines.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); j++) {</div><div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>&#160;            <a class="code" href="classShipCAD_1_1Spline.html">Spline</a> spline1(*(trvsplines.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(j)));</div><div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>&#160;            QVector3D p(spline1.<a class="code" href="classShipCAD_1_1Spline.html#aa62cf7afa6461bafce7227ec31875219">value</a>(i/static_cast&lt;float&gt;(rows)));</div><div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>&#160;            spline2.<a class="code" href="classShipCAD_1_1Spline.html#ac3d9f4514573be91b316413bf062791a">add</a>(p);</div><div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>&#160;        }</div><div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>&#160;        <span class="comment">// now calculate all points on the longitudinal spline and send to the surface</span></div><div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>&#160;        vector&lt;SubdivisionControlPoint*&gt; row;</div><div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;=cols; j++) {</div><div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>&#160;            QVector3D p(spline2.<a class="code" href="classShipCAD_1_1Spline.html#aa62cf7afa6461bafce7227ec31875219">value</a>(j/static_cast&lt;float&gt;(cols)));</div><div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html">SubdivisionControlPoint</a>* pt = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#af644edd0d4ba993dbab280f036b37171">addControlPoint</a>(p);</div><div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>&#160;            row.push_back(pt);</div><div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>&#160;            <span class="keywordflow">if</span> (i == 0 &amp;&amp; j == cols)</div><div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>&#160;                stem_point = pt;</div><div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>&#160;        }</div><div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>&#160;        pts.push_back(row);</div><div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>&#160;    }</div><div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>&#160;    <span class="comment">// finally create the controlfaces over the newly calculate points</span></div><div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=1; i&lt;=rows; i++) {</div><div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=1; j&lt;=cols; j++) {</div><div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>&#160;            vector&lt;SubdivisionControlPoint*&gt; tmppoints;</div><div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>&#160;            tmppoints.push_back(pts[i][j-1]);</div><div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>&#160;            tmppoints.push_back(pts[i][j]);</div><div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>&#160;            tmppoints.push_back(pts[i-1][j]);</div><div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>&#160;            tmppoints.push_back(pts[i-1][j-1]);</div><div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>&#160;            <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#abbbb7422a86771451034d2fb7a76bb26">addControlFace</a>(tmppoints, <span class="keyword">true</span>);</div><div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>&#160;        }</div><div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>&#160;    }</div><div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>&#160;    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6133fe12cd13b6ce24424e19a8b1e433">setPrecision</a>(<a class="code" href="namespaceShipCAD.html#ae13c7e36dfb1e2300741a631041cd915af3fadd404d6708aa5759c5c33df67abb">fpMedium</a>);</div><div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>&#160;    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a13cfd2714344c9b85aad8d123538db48">initialize</a>(1,1);</div><div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>&#160;    <span class="comment">// collapse stempoint</span></div><div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>&#160;    <span class="keywordflow">if</span> (stem_point != 0 &amp;&amp; stem_point-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#abc15cbc4faebeb138c1a4a4890a3173b">getVertexType</a>() == <a class="code" href="namespaceShipCAD.html#a03171cc921c53a568b778f5131a60deba8d802131f84b0a9edf8a419eded859d0">svCorner</a>)</div><div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>&#160;        stem_point-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a614259dfa2470bbbd7b8cc73039ad501">setVertexType</a>(<a class="code" href="namespaceShipCAD.html#a03171cc921c53a568b778f5131a60deba79fc4e40055439350070993be28ec8ca">svCrease</a>);</div><div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>&#160;    QVector3D min;</div><div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>&#160;    QVector3D max;</div><div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>&#160;    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#abc1cf0168290242dfbe5dd0d178fa7cb">extents</a>(min, max);</div><div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>&#160;    <span class="comment">// add 21 stations</span></div><div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;21; i++)</div><div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#a83e2091e476b3ea89c75ecb25f46268b">createIntersection</a>(<a class="code" href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fdaf57b8e7252f2c55c001df410276926e3">fiStation</a>, i/20.0*(max.x() - min.x()));</div><div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>&#160;    <span class="comment">// add 7 buttocks</span></div><div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;7; i++)</div><div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#a83e2091e476b3ea89c75ecb25f46268b">createIntersection</a>(<a class="code" href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fdabcf8818401977200b532a1e18ec2df70">fiButtock</a>, i/7.0*(max.y() - min.y()));</div><div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>&#160;    <span class="comment">// add 11 waterlines</span></div><div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;11; i++)</div><div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>&#160;        <a class="code" href="classShipCAD_1_1ShipCADModel.html#a83e2091e476b3ea89c75ecb25f46268b">createIntersection</a>(<a class="code" href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fda44c99d1edb96c2c22b5661d927eb9041">fiWaterline</a>, i/10.0*(max.z() - min.z()));</div><div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>&#160;    _file_changed = <span class="keyword">false</span>;</div><div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>&#160;    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a1b27573aab3a458f9002a7e4e327736a">rebuildModel</a>(<span class="keyword">false</span>);</div><div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>&#160;    <span class="keywordflow">if</span> (_stations.size() &gt; 0)</div><div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>&#160;        _vis.setShowStations(<span class="keyword">true</span>);</div><div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>&#160;    <span class="keywordflow">if</span> (_waterlines.size() &gt; 0)</div><div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>&#160;        _vis.setShowWaterlines(<span class="keyword">true</span>);</div><div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>&#160;    <span class="keywordflow">if</span> (_buttocks.size() &gt; 0)</div><div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>&#160;        _vis.setShowButtocks(<span class="keyword">true</span>);</div><div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>&#160;}</div><div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>&#160;</div><div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>&#160;<span class="comment">// FreeShipUnit.pas:13166</span></div><div class="line"><a name="l01307"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a0d969a8b0f05767d6507290f118d769c"> 1307</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a0d969a8b0f05767d6507290f118d769c">ShipCADModel::savePart</a>(<span class="keyword">const</span> QString&amp; filename, <a class="code" href="classShipCAD_1_1FileBuffer.html">FileBuffer</a>&amp; buffer,</div><div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>&#160;                            vector&lt;SubdivisionControlFace*&gt;&amp; faces)</div><div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>&#160;{</div><div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>&#160;    set&lt;SubdivisionLayer*&gt; layers;</div><div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>&#160;    set&lt;SubdivisionControlPoint*&gt; points;</div><div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>&#160;    set&lt;SubdivisionControlEdge*&gt; edges;</div><div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>&#160;    set&lt;SubdivisionControlCurve*&gt; curves;</div><div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>&#160;</div><div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>&#160;    <span class="comment">// extract controlpoints and controledges</span></div><div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>&#160;    <span class="keywordflow">for</span> (vector&lt;SubdivisionControlFace*&gt;::iterator i=faces.begin(); i!=faces.end(); ++i) {</div><div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionControlFace.html">SubdivisionControlFace</a>* face = *i;</div><div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>&#160;        layers.insert(face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlFace.html#a25e4ea676adc327a430b50a81e91ef9d">getLayer</a>());</div><div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html">SubdivisionControlPoint</a>* p1 = <span class="keyword">dynamic_cast&lt;</span><a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html">SubdivisionControlPoint</a>*<span class="keyword">&gt;</span>(face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a5da55a479cd54b90fc0ec5d0bedb9279">getLastPoint</a>());</div><div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>&#160;        points.insert(p1);</div><div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>(); j++) {</div><div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html">SubdivisionControlPoint</a>* p2 = <span class="keyword">dynamic_cast&lt;</span><a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html">SubdivisionControlPoint</a>*<span class="keyword">&gt;</span>(face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(j));</div><div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>&#160;            points.insert(p2);</div><div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionControlEdge.html">SubdivisionControlEdge</a>* edge = _surface.controlEdgeExists(p1, p2);</div><div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>&#160;            <span class="keywordflow">if</span> (edge != <span class="keyword">nullptr</span>)</div><div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>&#160;                edges.insert(edge);</div><div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>&#160;            p1 = p2;</div><div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>&#160;        }</div><div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>&#160;    }</div><div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>&#160;</div><div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>&#160;    <span class="comment">// process control curves</span></div><div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_surface.numberOfControlCurves(); ++i) {</div><div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionControlCurve.html">SubdivisionControlCurve</a>* curve = _surface.getControlCurve(i);</div><div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>&#160;        <span class="comment">// in order to export this curve, all associated control edges must be in the edge list</span></div><div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>&#160;        <span class="keywordtype">bool</span> addcurve = curve-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlCurve.html#ae5fbcecbf686e25e28a6b418719e8ecb">numberOfControlPoints</a>() &gt; 1;</div><div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=1; j&lt;curve-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlCurve.html#ae5fbcecbf686e25e28a6b418719e8ecb">numberOfControlPoints</a>(); j++) {</div><div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html">SubdivisionControlPoint</a>* p1 = curve-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlCurve.html#a40ad888b65a29ca25d39a15f37cb53c0">getControlPoint</a>(j-1);</div><div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html">SubdivisionControlPoint</a>* p2 = curve-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlCurve.html#a40ad888b65a29ca25d39a15f37cb53c0">getControlPoint</a>(j);</div><div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionControlEdge.html">SubdivisionControlEdge</a>* edge = _surface.controlEdgeExists(p1, p2);</div><div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>&#160;            <span class="keywordflow">if</span> ((edge != <span class="keyword">nullptr</span> &amp;&amp; edges.find(edge) == edges.end()) || edge == <span class="keyword">nullptr</span>)</div><div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>&#160;                addcurve = <span class="keyword">false</span>;</div><div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>&#160;        }</div><div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>&#160;        <span class="keywordflow">if</span> (addcurve)</div><div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>&#160;            curves.insert(curve);</div><div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>&#160;    }</div><div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>&#160;</div><div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>&#160;    <span class="comment">// sort the curves</span></div><div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>&#160;    vector&lt;SubdivisionControlCurve*&gt; curvelist(curves.begin(), curves.end());</div><div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>&#160;    sort(curvelist.begin(), curvelist.end());</div><div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>&#160;    vector&lt;SubdivisionLayer*&gt; layerlist(layers.begin(), layers.end());</div><div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>&#160;    sort(layerlist.begin(), layerlist.end());</div><div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>&#160;</div><div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>&#160;    <span class="comment">// write the file</span></div><div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>&#160;    buffer.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(<span class="stringliteral">&quot;FREE!ship partfile&quot;</span>);</div><div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>&#160;    <span class="comment">// file version</span></div><div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>&#160;    buffer.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(_file_version);</div><div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>&#160;    <span class="comment">// project units</span></div><div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>&#160;    buffer.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(static_cast&lt;quint32&gt;(_settings.getUnits()));</div><div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>&#160;    <span class="comment">// number of layers</span></div><div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>&#160;    buffer.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(layerlist.size());</div><div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>&#160;    <span class="comment">// the layers</span></div><div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;layerlist.size(); i++)</div><div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>&#160;        layerlist[i]-&gt;<a class="code" href="classShipCAD_1_1ShipCADModel.html#a64c7c4ddffffdd1be2f27eb4210af2b7">saveBinary</a>(buffer);</div><div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>&#160;    <span class="comment">// controlpoints</span></div><div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>&#160;    buffer.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(points.size());</div><div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>&#160;    map&lt;SubdivisionControlPoint*,size_t&gt; indexer;</div><div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>&#160;    <span class="keywordtype">size_t</span> k=0;</div><div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>&#160;    <span class="keywordflow">for</span> (set&lt;SubdivisionControlPoint*&gt;::iterator itr=points.begin(); itr!=points.end(); ++itr) {</div><div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>&#160;        (*itr)-&gt;save_binary(buffer);</div><div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>&#160;        indexer.insert(make_pair((*itr), k++));</div><div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>&#160;    }</div><div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>&#160;    <span class="comment">// save control edges</span></div><div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>&#160;    buffer.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(edges.size());</div><div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>&#160;    <span class="keywordflow">for</span> (set&lt;SubdivisionControlEdge*&gt;::iterator eitr=edges.begin(); eitr!=edges.end(); ++eitr) {</div><div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionControlEdge.html">SubdivisionControlEdge</a>* edge = *eitr;</div><div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>&#160;        buffer.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(indexer.find(dynamic_cast&lt;SubdivisionControlPoint*&gt;(edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#aa6e28532f3ecc1610813844dfb385deb">startPoint</a>()))-&gt;second);</div><div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>&#160;        buffer.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(indexer.find(dynamic_cast&lt;SubdivisionControlPoint*&gt;(edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#aa65e2e10929c52fd05b6bb90317977dc">endPoint</a>()))-&gt;second);</div><div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>&#160;        buffer.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#ae649fe7169f64a8e5ede1fbb36a176fa">isCrease</a>());</div><div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>&#160;    }</div><div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>&#160;    <span class="comment">// save control faces</span></div><div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>&#160;    buffer.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(faces.size());</div><div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>&#160;    <span class="keywordflow">for</span> (vector&lt;SubdivisionControlFace*&gt;::iterator fitr=faces.begin(); fitr!=faces.end(); ++fitr) {</div><div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionControlFace.html">SubdivisionControlFace</a>* face = *fitr;</div><div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>&#160;        buffer.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>());</div><div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>(); j++)</div><div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>&#160;            buffer.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(indexer.find(dynamic_cast&lt;SubdivisionControlPoint*&gt;(</div><div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>&#160;                                        face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(j)))-&gt;second);</div><div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>&#160;        buffer.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(<a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;indexOfLayer(face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlFace.html#a25e4ea676adc327a430b50a81e91ef9d">getLayer</a>()));</div><div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>&#160;    }</div><div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>&#160;    <span class="comment">// save control curves</span></div><div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>&#160;    buffer.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(curvelist.size());</div><div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;curvelist.size(); i++) {</div><div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionControlCurve.html">SubdivisionControlCurve</a>* curve = curvelist[i];</div><div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>&#160;        buffer.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(curve-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlCurve.html#ae5fbcecbf686e25e28a6b418719e8ecb">numberOfControlPoints</a>());</div><div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;curve-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlCurve.html#ae5fbcecbf686e25e28a6b418719e8ecb">numberOfControlPoints</a>(); j++)</div><div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>&#160;            buffer.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(indexer.find(curve-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlCurve.html#a40ad888b65a29ca25d39a15f37cb53c0">getControlPoint</a>(j))-&gt;second);</div><div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>&#160;    }</div><div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>&#160;    buffer.<a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(<a class="code" href="namespaceShipCAD.html#ae416df4a72579eb3a1a418b19551eb53">ChangeFileExt</a>(filename, <span class="stringliteral">&quot;.part&quot;</span>));</div><div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>&#160;}</div><div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>&#160;</div><div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>&#160;<span class="comment">// FreeShipUnit.pas:7708</span></div><div class="line"><a name="l01402"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a167bdeeb8995f102acdbb8cdb92f34e3"> 1402</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a167bdeeb8995f102acdbb8cdb92f34e3">ShipCADModel::loadPart</a>(<a class="code" href="classShipCAD_1_1FileBuffer.html">FileBuffer</a>&amp; source, <a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694f">version_t</a>&amp; partversion)</div><div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>&#160;{</div><div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>&#160;    <span class="keywordtype">float</span> scale = 1.0;</div><div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>&#160;    <span class="keywordtype">bool</span> changed = <span class="keyword">false</span>;       <span class="comment">// have we actually loaded something?</span></div><div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>&#160;    quint32 n;</div><div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>&#160;    <a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html">SubdivisionControlPoint</a>* p1;</div><div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>&#160;    <a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html">SubdivisionControlPoint</a>* p2;</div><div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>&#160;    <a class="code" href="classShipCAD_1_1SubdivisionControlEdge.html">SubdivisionControlEdge</a>* edge;</div><div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>&#160;    <a class="code" href="classShipCAD_1_1SubdivisionLayer.html">SubdivisionLayer</a>* layer;</div><div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>&#160;    source.<a class="code" href="classShipCAD_1_1FileBuffer.html#af59c26297994b38aabc4bc678d04c246">reset</a>();</div><div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>&#160;    QString hdr;</div><div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>&#160;    source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(hdr);</div><div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>&#160;    <span class="keywordflow">if</span> (hdr == <span class="stringliteral">&quot;FREE!ship partfile&quot;</span>) {</div><div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>&#160;        source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(n);</div><div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>&#160;        partversion = <span class="keyword">static_cast&lt;</span><a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694f">version_t</a><span class="keyword">&gt;</span>(n);</div><div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>&#160;        source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a66c14f8f21b9f77febd154aee9565f0b">setVersion</a>(partversion);</div><div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>&#160;        <span class="keywordflow">if</span> (partversion &lt;= <a class="code" href="namespaceShipCAD.html#aa3415e1acf9bdb19e24f31f5138d6a60">k_current_version</a>) {</div><div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>&#160;            vector&lt;SubdivisionControlPoint*&gt; points;</div><div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>&#160;            vector&lt;SubdivisionControlEdge*&gt; edges;</div><div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>&#160;            vector&lt;SubdivisionLayer*&gt; layers;</div><div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>&#160;            <span class="comment">// load units</span></div><div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>&#160;            source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(n);</div><div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>&#160;            <a class="code" href="namespaceShipCAD.html#ac6a7a28b4b063771afae92decb602da5">unit_type_t</a> units = <span class="keyword">static_cast&lt;</span><a class="code" href="namespaceShipCAD.html#ac6a7a28b4b063771afae92decb602da5">unit_type_t</a><span class="keyword">&gt;</span>(n);</div><div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>&#160;            <span class="keywordflow">if</span> (units != _settings.getUnits()) {</div><div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>&#160;                scale = (units == <a class="code" href="namespaceShipCAD.html#ac6a7a28b4b063771afae92decb602da5a867fb274949bd7c8474546b9d0fb703f">fuMetric</a>) ? 1 / <a class="code" href="namespaceShipCAD.html#a8c1484188fed1e735c5a94f64a6817ab">kFoot</a> : <a class="code" href="namespaceShipCAD.html#a8c1484188fed1e735c5a94f64a6817ab">kFoot</a>;</div><div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>&#160;            }</div><div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>&#160;            <span class="comment">// load number of layers</span></div><div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>&#160;            source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(n);</div><div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>&#160;            <span class="comment">// load layers</span></div><div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;n; i++) {</div><div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>&#160;                layer = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a5bf8f452664e17dae636d4b66a66eba9">addNewLayer</a>();</div><div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>&#160;                <span class="keywordtype">size_t</span> lid = layer-&gt;<a class="code" href="classShipCAD_1_1SubdivisionLayer.html#a0f334fb0ec1774fbff8d60aa8a9b6889">getLayerID</a>();</div><div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>&#160;                layer-&gt;<a class="code" href="classShipCAD_1_1SubdivisionLayer.html#a060357b84c0549fa7310e45680fed9bd">loadBinary</a>(source);</div><div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>&#160;                layer-&gt;<a class="code" href="classShipCAD_1_1SubdivisionLayer.html#ad6cbb87ecaadd6c31635fb86fe1a4b13">setLayerID</a>(lid);</div><div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>&#160;                layers.push_back(layer);</div><div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>&#160;                changed = <span class="keyword">true</span>;</div><div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>&#160;            }</div><div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>&#160;            <span class="comment">// control points</span></div><div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>&#160;            source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(n);</div><div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;n; i++) {</div><div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>&#160;                p2 = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#af644edd0d4ba993dbab280f036b37171">addControlPoint</a>();</div><div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>&#160;                p2-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html#a989c801ca1c836ca73f77c68d719f546">load_binary</a>(source);</div><div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>&#160;                p2-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html#a54a5233e02ef34a174c24d5dcf3c6407">setCoordinate</a>(p2-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a285325115089a1b99be4480bf6079bf1">getCoordinate</a>() * scale);</div><div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>&#160;                points.push_back(p2);</div><div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>&#160;                changed = <span class="keyword">true</span>;</div><div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>&#160;            }</div><div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>&#160;            <span class="comment">// control edges</span></div><div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>&#160;            source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(n);</div><div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;n; i++) {</div><div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>&#160;                quint32 index;</div><div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>&#160;                p1 = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>&#160;                p2 = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>&#160;                edge = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>&#160;                source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(index);</div><div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>&#160;                <span class="keywordflow">if</span> (index &lt; points.size())</div><div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>&#160;                    p1 = points[index];</div><div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>&#160;                source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(index);</div><div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>&#160;                <span class="keywordflow">if</span> (index &lt; points.size())</div><div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>&#160;                    p2 = points[index];</div><div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>&#160;                <span class="keywordflow">if</span> (p1 != <span class="keyword">nullptr</span> &amp;&amp; p2 != <span class="keyword">nullptr</span>)</div><div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>&#160;                    edge = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a976358235d20a0fdc83248948bb9cf48">addControlEdge</a>(p1, p2);</div><div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>&#160;                <span class="keywordtype">bool</span> crease;</div><div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>&#160;                source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(crease);</div><div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>&#160;                <span class="keywordflow">if</span> (edge != <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>&#160;                    edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#ad0313b8844a81c5802533376a09fce99">setCrease</a>(crease);</div><div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>&#160;                    edges.push_back(edge);</div><div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>&#160;                }</div><div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>&#160;                changed = <span class="keyword">true</span>;</div><div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>&#160;            }</div><div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>&#160;            <span class="comment">// controlfaces</span></div><div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>&#160;            source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(n);</div><div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;n; i++) {</div><div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>&#160;                quint32 np;</div><div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>&#160;                layer = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>&#160;                source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(np);</div><div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>&#160;                vector&lt;SubdivisionControlPoint*&gt; fpoints;</div><div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>&#160;                <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;np; j++) {</div><div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>&#160;                    quint32 index;</div><div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>&#160;                    p1 = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>&#160;                    source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(index);</div><div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>&#160;                    <span class="keywordflow">if</span> (index &lt; points.size())</div><div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>&#160;                        p1 = points[index];</div><div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>&#160;                    <span class="keywordflow">if</span> (p1 != <span class="keyword">nullptr</span>)</div><div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>&#160;                        fpoints.push_back(p1);</div><div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>&#160;                }</div><div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>&#160;                quint32 layerid;</div><div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>&#160;                source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(layerid);</div><div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>&#160;                <span class="keywordflow">if</span> (layerid &lt; layers.size())</div><div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>&#160;                    layer = layers[layerid];</div><div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>&#160;                <span class="keywordflow">if</span> (fpoints.size() == np &amp;&amp; layer != <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>&#160;                    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#abbbb7422a86771451034d2fb7a76bb26">addControlFace</a>(fpoints, <span class="keyword">false</span>, layer);</div><div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>&#160;                }</div><div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>&#160;            }</div><div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>&#160;            <span class="comment">// reset crease on edges</span></div><div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;edges.size(); i++) {</div><div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>&#160;                <span class="keywordflow">if</span> (edges[i]-&gt;numberOfFaces() != 2 &amp;&amp; !edges[i]-&gt;isCrease())</div><div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>&#160;                    edges[i]-&gt;setCrease(<span class="keyword">true</span>);</div><div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>&#160;            }</div><div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>&#160;            <span class="comment">// controlcurves</span></div><div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>&#160;            source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(n);</div><div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;n; i++) {</div><div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>&#160;                quint32 np;</div><div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>&#160;                source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(np);</div><div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>&#160;                <span class="keywordflow">if</span> (np &gt; 1) {</div><div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>&#160;                    <a class="code" href="classShipCAD_1_1SubdivisionControlCurve.html">SubdivisionControlCurve</a>* curve = <a class="code" href="classShipCAD_1_1SubdivisionControlCurve.html#a21d9226cc2fd7efcaf6f1067912a0b34">SubdivisionControlCurve::construct</a>(<a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>());</div><div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>&#160;                    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#aa01ccc2ce7417960ca13075e38eb98e6">addControlCurve</a>(curve);</div><div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>&#160;                    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;np; j++) {</div><div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>&#160;                        quint32 index;</div><div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>&#160;                        p2 = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>&#160;                        source.<a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(index);</div><div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>&#160;                        <span class="keywordflow">if</span> (index &lt; points.size()) {</div><div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>&#160;                            p2 = points[index];</div><div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>&#160;                            curve-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlCurve.html#a1155b0abe401a7128369a589b6e6ac9c">addPoint</a>(p2);</div><div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>&#160;                        }</div><div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>&#160;                        <span class="keywordflow">if</span> (j &gt; 0) {</div><div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>&#160;                            p1 = curve-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlCurve.html#a40ad888b65a29ca25d39a15f37cb53c0">getControlPoint</a>(j-1);</div><div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>&#160;                            edge = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a6a89be4440e3adfcb0b14c164db891ae">controlEdgeExists</a>(p1, p2);</div><div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>&#160;                            <span class="keywordflow">if</span> (edge != <span class="keyword">nullptr</span>)</div><div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>&#160;                                edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#a445c08836100060818c129ea7c694234">setCurve</a>(curve);</div><div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>&#160;                        }</div><div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>&#160;                    }</div><div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>&#160;                }</div><div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>&#160;            }</div><div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>&#160;        }</div><div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>&#160;    }</div><div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>&#160;    <span class="keywordflow">return</span> changed;</div><div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>&#160;}</div><div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>&#160;</div><div class="line"><a name="l01530"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#ae03a368cf40f1781fb0ed8a60248dcc6"> 1530</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#ae03a368cf40f1781fb0ed8a60248dcc6">ShipCADModel::loadChinesFromText</a>(QTextStream&amp; file, <a class="code" href="classPointerVector.html">SplineVector</a>&amp; splines)</div><div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>&#160;{</div><div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>&#160;    <span class="keywordtype">size_t</span> lineno = 0;</div><div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>&#160;    <span class="keywordtype">bool</span> unexpected = <span class="keyword">false</span>;</div><div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>&#160;    <a class="code" href="classShipCAD_1_1Spline.html">Spline</a>* spline = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>&#160;    <span class="keywordflow">while</span> (!unexpected &amp;&amp; !file.atEnd()) {</div><div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>&#160;        QString line = file.readLine();</div><div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>&#160;        lineno++;</div><div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>&#160;        <span class="keywordtype">bool</span> ok;</div><div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>&#160;        <span class="keywordflow">if</span> (lineno == 1) {</div><div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>&#160;            <span class="keywordtype">int</span> units = line.toInt(&amp;ok);</div><div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>&#160;            <span class="keywordflow">if</span> (ok &amp;&amp; units == 0)</div><div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>&#160;                _settings.setUnits(<a class="code" href="namespaceShipCAD.html#ac6a7a28b4b063771afae92decb602da5a867fb274949bd7c8474546b9d0fb703f">fuMetric</a>);</div><div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ok &amp;&amp; units == 1)</div><div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>&#160;                _settings.setUnits(<a class="code" href="namespaceShipCAD.html#ac6a7a28b4b063771afae92decb602da5a867fb274949bd7c8474546b9d0fb703f">fuMetric</a>);</div><div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>&#160;            <span class="keywordflow">else</span></div><div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>&#160;                <span class="keywordflow">throw</span> <a class="code" href="classShipCAD_1_1ParseError.html">ParseError</a>(1, <span class="stringliteral">&quot;first line is units, must be 0 or 1&quot;</span>);</div><div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>&#160;            <span class="keywordflow">continue</span>;</div><div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>&#160;        }</div><div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>&#160;        <span class="comment">// if an empty line, complete the spline</span></div><div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>&#160;        <span class="comment">// and get ready for more</span></div><div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>&#160;        <span class="keywordflow">if</span> (line.size() == 0 &amp;&amp; spline != <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>&#160;            <span class="keywordflow">if</span> (spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa15d52dbfa55ec3b1ec272104a45ebd5">numberOfPoints</a>() &gt; 1) {</div><div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>&#160;                splines.<a class="code" href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">add</a>(spline);</div><div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>&#160;            } <span class="keywordflow">else</span> {</div><div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>&#160;                <span class="keyword">delete</span> spline;</div><div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>&#160;            }</div><div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>&#160;            spline = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>&#160;            <span class="keywordflow">continue</span>;</div><div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>&#160;        }</div><div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>&#160;        <span class="keywordflow">if</span> (line == <span class="stringliteral">&quot;EOF&quot;</span>)</div><div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>&#160;            <span class="keywordflow">break</span>;</div><div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>&#160;        <span class="comment">// split the line</span></div><div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>&#160;        QStringList fields = line.split(<span class="stringliteral">&quot; &quot;</span>);</div><div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>&#160;        <span class="keywordflow">if</span> (fields.size() != 3) {</div><div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>&#160;            <span class="comment">// try tabs</span></div><div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>&#160;            fields = line.split(<span class="stringliteral">&quot;\t&quot;</span>);</div><div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>&#160;            <span class="keywordflow">if</span> (fields.size() != 3) {</div><div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>&#160;                unexpected = <span class="keyword">true</span>;</div><div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>&#160;                <span class="keywordflow">continue</span>;</div><div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>&#160;            }</div><div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>&#160;        }</div><div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>&#160;        <span class="comment">// we have 3 pieces, turn it into a point</span></div><div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>&#160;        <span class="keywordtype">float</span> x = fields[0].toFloat(&amp;ok);</div><div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>&#160;        <span class="keywordflow">if</span> (!ok) {</div><div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>&#160;            unexpected = <span class="keyword">true</span>;</div><div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>&#160;            <span class="keywordflow">continue</span>;</div><div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>&#160;        }</div><div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>&#160;        <span class="keywordtype">float</span> y = fields[1].toFloat(&amp;ok);</div><div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>&#160;        <span class="keywordflow">if</span> (!ok) {</div><div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>&#160;            unexpected = <span class="keyword">true</span>;</div><div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>&#160;            <span class="keywordflow">continue</span>;</div><div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>&#160;        }</div><div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>&#160;        <span class="keywordtype">float</span> z = fields[2].toFloat(&amp;ok);</div><div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>&#160;        <span class="keywordflow">if</span> (!ok) {</div><div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>&#160;            unexpected = <span class="keyword">true</span>;</div><div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>&#160;            <span class="keywordflow">continue</span>;</div><div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>&#160;        }</div><div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>&#160;        <span class="comment">// add the point to the spline</span></div><div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>&#160;        QVector3D pt(x, y, z);</div><div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>&#160;        <span class="keywordflow">if</span> (spline == <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>&#160;            spline = <span class="keyword">new</span> <a class="code" href="classShipCAD_1_1Spline.html">Spline</a>();</div><div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>&#160;        }</div><div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>&#160;        spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#ac3d9f4514573be91b316413bf062791a">add</a>(pt);</div><div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>&#160;    }</div><div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>&#160;    <span class="comment">// complete the last spline</span></div><div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>&#160;    <span class="keywordflow">if</span> (!unexpected &amp;&amp; spline != <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>&#160;        <span class="keywordflow">if</span> (spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa15d52dbfa55ec3b1ec272104a45ebd5">numberOfPoints</a>() &gt; 1) {</div><div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>&#160;            splines.<a class="code" href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">add</a>(spline);</div><div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>&#160;        } <span class="keywordflow">else</span></div><div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>&#160;            <span class="keyword">delete</span> spline;</div><div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>&#160;    }</div><div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>&#160;    <span class="comment">// got something wrong, bail</span></div><div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>&#160;    <span class="keywordflow">if</span> (unexpected) {</div><div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>&#160;        <span class="keywordflow">throw</span> <a class="code" href="classShipCAD_1_1ParseError.html">ParseError</a>(lineno, <span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>&#160;    }</div><div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>&#160;}</div><div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>&#160;</div><div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>&#160;<span class="comment">// FreeShipUnit.pas:12715</span></div><div class="line"><a name="l01609"></a><span class="lineno"><a class="line" href="classShipCAD_1_1ShipCADModel.html#a860a91c09307c71f738a75aec159e6d0"> 1609</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1ShipCADModel.html#a860a91c09307c71f738a75aec159e6d0">ShipCADModel::importChines</a>(<span class="keywordtype">size_t</span> np, <a class="code" href="classPointerVector.html">SplineVector</a>&amp; chines)</div><div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>&#160;{</div><div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>&#160;    <a class="code" href="classShipCAD_1_1SubdivisionSurface.html">SubdivisionSurface</a>* surf = <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">getSurface</a>();</div><div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;chines.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); ++i) {</div><div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionLayer.html">SubdivisionLayer</a>* layer = (i &lt; surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a011480014cfb68430c9f60aff474936c">numberOfLayers</a>()) ?</div><div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>&#160;            surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a24b230e51a0c5fb3e7f51d0e2340eb9f">getLayer</a>(i) : surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a5bf8f452664e17dae636d4b66a66eba9">addNewLayer</a>();</div><div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>&#160;        <span class="comment">// msg 0186</span></div><div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>&#160;        layer-&gt;<a class="code" href="classShipCAD_1_1SubdivisionLayer.html#a3861c77aeb283fbea6efe943ced83f41">setName</a>(tr(<span class="stringliteral">&quot;Strake %1&quot;</span>).arg(i+1));</div><div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>&#160;        layer-&gt;<a class="code" href="classShipCAD_1_1SubdivisionLayer.html#a6fdfc0d208904d821349eb7380a52411">setDevelopable</a>(<span class="keyword">true</span>);</div><div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>&#160;    }</div><div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>&#160;    <span class="comment">// add special layer to close the hull at centerline</span></div><div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>&#160;    <a class="code" href="classShipCAD_1_1SubdivisionLayer.html">SubdivisionLayer</a>* layer = surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a5bf8f452664e17dae636d4b66a66eba9">addNewLayer</a>();</div><div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>&#160;    <span class="comment">// msg 0187</span></div><div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>&#160;    layer-&gt;<a class="code" href="classShipCAD_1_1SubdivisionLayer.html#a3861c77aeb283fbea6efe943ced83f41">setName</a>(tr(<span class="stringliteral">&quot;Close hull&quot;</span>));</div><div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>&#160;    <span class="comment">// prepare matrices</span></div><div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>&#160;    MatrixXd mat(np, np);</div><div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;np; ++i)</div><div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;np; ++j)</div><div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>&#160;            mat(i,j) = 0.0;</div><div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>&#160;    mat(0, 0) = 1.0;</div><div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=2; i&lt;np; i++) {</div><div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>&#160;        mat(i-1, i-2) = 1/6.0;</div><div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>&#160;        mat(i-1, i-1) = 2/3.0;</div><div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>&#160;        mat(i-1, i) = 1/6.0;</div><div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>&#160;    }</div><div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>&#160;    mat(np-1, np-1) = 1.0;</div><div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>&#160;    ColPivHouseholderQR&lt;MatrixXd&gt; qr(np, np);</div><div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>&#160;    qr.compute(mat);</div><div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>&#160;    MatrixXd row(np, 3);</div><div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>&#160;    QVector3D min, max;</div><div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>&#160;    <a class="code" href="structShipCAD_1_1CPointGrid.html">CPointGrid</a> points;</div><div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>&#160;    points.<a class="code" href="structShipCAD_1_1CPointGrid.html#a43adcefcb3e233be4f565e633382062d">setRows</a>(np);</div><div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>&#160;    points.<a class="code" href="structShipCAD_1_1CPointGrid.html#abe0f101bc5c9fb6e9ba8008cae0e1637">setCols</a>(chines.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>());</div><div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>&#160;    </div><div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;chines.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); ++i) {</div><div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>&#160;        <a class="code" href="classShipCAD_1_1Spline.html">Spline</a>* spline = chines.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i);</div><div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;np; ++j) {</div><div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>&#160;            QVector3D p = spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa62cf7afa6461bafce7227ec31875219">value</a>(j / static_cast&lt;float&gt;(np - 1));</div><div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>&#160;            row(j, 0) = p.x();</div><div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>&#160;            row(j, 1) = p.y();</div><div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>&#160;            row(j, 2) = p.z();</div><div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>&#160;        }</div><div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>&#160;        <span class="comment">// calculate new points</span></div><div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>&#160;        MatrixXd newpts = qr.solve(row);</div><div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;np; ++j) {</div><div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>&#160;            QVector3D pt(newpts(j, 0), newpts(j, 1), newpts(j, 2));</div><div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>&#160;            <span class="keywordflow">if</span> (pt.y() &lt; 0)</div><div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>&#160;                pt.setY(0.0);</div><div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>&#160;            <span class="keywordflow">if</span> (i == 0 &amp;&amp; j == 0) {</div><div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>&#160;                min = pt;</div><div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>&#160;                max = min;</div><div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>&#160;            } <span class="keywordflow">else</span></div><div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>&#160;                <a class="code" href="namespaceShipCAD.html#aa5d3fc63603d716d3e24244049e1e510">MinMax</a>(pt, min, max);</div><div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>&#160;            points.<a class="code" href="structShipCAD_1_1CPointGrid.html#a1d5124b9486adbe884631c3b2b61165d">setPoint</a>(j, i, surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#af644edd0d4ba993dbab280f036b37171">addControlPoint</a>(pt));</div><div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>&#160;        }</div><div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>&#160;    }</div><div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>&#160;    <span class="comment">// add chines as markers</span></div><div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;chines.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); ++i) {</div><div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>&#160;        <a class="code" href="classShipCAD_1_1Spline.html">Spline</a>* spline = chines.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i);</div><div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>&#160;        <a class="code" href="classShipCAD_1_1Marker.html">Marker</a>* marker = <a class="code" href="classShipCAD_1_1ShipCADModel.html#ac7fd2d6607f589a20444f3efb8fde63b">addMarker</a>();</div><div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa15d52dbfa55ec3b1ec272104a45ebd5">numberOfPoints</a>(); ++j) {</div><div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>&#160;            marker-&gt;<a class="code" href="classShipCAD_1_1Spline.html#ac3d9f4514573be91b316413bf062791a">add</a>(spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#a04a94537b420a8d19dc5f78526e9a825">getPoint</a>(j));</div><div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>&#160;            marker-&gt;<a class="code" href="classShipCAD_1_1Spline.html#ad4f075e2e8f1d3ac7c2d22b5be75bbad">setKnuckle</a>(j, spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa471e8916034ea3e11c1feb9c8bb935b">isKnuckle</a>(j));</div><div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>&#160;        }</div><div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>&#160;    }</div><div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>&#160;    <span class="comment">// setup control faces</span></div><div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>&#160;    vector&lt;SubdivisionControlPoint*&gt; pts;</div><div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=1; i&lt;np; ++i) {</div><div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=1; j&lt;chines.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); ++j) {</div><div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>&#160;            pts.clear();</div><div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html">SubdivisionControlPoint</a>* point = points.<a class="code" href="structShipCAD_1_1CPointGrid.html#a3899734154d0bbc614809a5151b1628c">getPoint</a>(i, j);</div><div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>&#160;            <span class="keywordflow">if</span> (find(pts.begin(), pts.end(), point) == pts.end())</div><div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>&#160;                pts.push_back(point);</div><div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>&#160;            point = points.<a class="code" href="structShipCAD_1_1CPointGrid.html#a3899734154d0bbc614809a5151b1628c">getPoint</a>(i-1, j);</div><div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>&#160;            <span class="keywordflow">if</span> (find(pts.begin(), pts.end(), point) == pts.end())</div><div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>&#160;                pts.push_back(point);</div><div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>&#160;            point = points.<a class="code" href="structShipCAD_1_1CPointGrid.html#a3899734154d0bbc614809a5151b1628c">getPoint</a>(i-1, j-1);</div><div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>&#160;            <span class="keywordflow">if</span> (find(pts.begin(), pts.end(), point) == pts.end())</div><div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>&#160;                pts.push_back(point);</div><div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>&#160;            point = points.<a class="code" href="structShipCAD_1_1CPointGrid.html#a3899734154d0bbc614809a5151b1628c">getPoint</a>(i, j-1);</div><div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>&#160;            <span class="keywordflow">if</span> (find(pts.begin(), pts.end(), point) == pts.end())</div><div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>&#160;                pts.push_back(point);</div><div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>&#160;            <span class="keywordflow">if</span> (pts.size() &gt; 2)</div><div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>&#160;                surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#abbbb7422a86771451034d2fb7a76bb26">addControlFace</a>(pts, <span class="keyword">true</span>, surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a24b230e51a0c5fb3e7f51d0e2340eb9f">getLayer</a>(j-1));</div><div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>&#160;        }</div><div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>&#160;    }</div><div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=1; i&lt;np; ++i) {</div><div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;chines.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); ++j) {</div><div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionControlEdge.html">SubdivisionControlEdge</a>* edge = surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a6a89be4440e3adfcb0b14c164db891ae">controlEdgeExists</a>(points.<a class="code" href="structShipCAD_1_1CPointGrid.html#a3899734154d0bbc614809a5151b1628c">getPoint</a>(i-1, j-1),</div><div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>&#160;                                                                   points.<a class="code" href="structShipCAD_1_1CPointGrid.html#a3899734154d0bbc614809a5151b1628c">getPoint</a>(i, j));</div><div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>&#160;            <span class="keywordflow">if</span> (edge != <span class="keyword">nullptr</span>)</div><div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>&#160;                edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#ad0313b8844a81c5802533376a09fce99">setCrease</a>(<span class="keyword">true</span>);</div><div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>&#160;        }</div><div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>&#160;    }</div><div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>&#160;</div><div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>&#160;    <span class="comment">// add controlcurves</span></div><div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;chines.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); ++j) {</div><div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionControlCurve.html">SubdivisionControlCurve</a>* curve = <a class="code" href="classShipCAD_1_1SubdivisionControlCurve.html#a21d9226cc2fd7efcaf6f1067912a0b34">SubdivisionControlCurve::construct</a>(surf);</div><div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>&#160;        surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#aa01ccc2ce7417960ca13075e38eb98e6">addControlCurve</a>(curve);</div><div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;np; ++i) {</div><div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>&#160;            curve-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlCurve.html#a1155b0abe401a7128369a589b6e6ac9c">addPoint</a>(points.<a class="code" href="structShipCAD_1_1CPointGrid.html#a3899734154d0bbc614809a5151b1628c">getPoint</a>(i, j));</div><div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>&#160;            <span class="keywordflow">if</span> (i &gt; 0) {</div><div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>&#160;                <a class="code" href="classShipCAD_1_1SubdivisionControlEdge.html">SubdivisionControlEdge</a>* edge = surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a6a89be4440e3adfcb0b14c164db891ae">controlEdgeExists</a>(points.<a class="code" href="structShipCAD_1_1CPointGrid.html#a3899734154d0bbc614809a5151b1628c">getPoint</a>(i-1, j),</div><div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>&#160;                                                                       points.<a class="code" href="structShipCAD_1_1CPointGrid.html#a3899734154d0bbc614809a5151b1628c">getPoint</a>(i, j));</div><div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>&#160;                <span class="keywordflow">if</span> (edge != <span class="keyword">nullptr</span>)</div><div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>&#160;                    edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#a445c08836100060818c129ea7c694234">setCurve</a>(curve);</div><div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>&#160;            }</div><div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>&#160;        }</div><div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>&#160;    }</div><div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>&#160;</div><div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>&#160;    <span class="comment">// check for stem, keel, and stern points to be closed</span></div><div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>&#160;    pts.clear();</div><div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>&#160;    <span class="comment">// first stern</span></div><div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=chines.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i&gt;=2; --i)</div><div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>&#160;        pts.push_back(points.<a class="code" href="structShipCAD_1_1CPointGrid.html#a3899734154d0bbc614809a5151b1628c">getPoint</a>(np-1, i-1));</div><div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>&#160;    <span class="comment">// then keel</span></div><div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=np; i&gt;=1; --i)</div><div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>&#160;        pts.push_back(points.<a class="code" href="structShipCAD_1_1CPointGrid.html#a3899734154d0bbc614809a5151b1628c">getPoint</a>(i-1, 0));</div><div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>&#160;    <span class="comment">// and finally stem</span></div><div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=2; i&lt;=chines.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); ++i)</div><div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>&#160;        pts.push_back(points.<a class="code" href="structShipCAD_1_1CPointGrid.html#a3899734154d0bbc614809a5151b1628c">getPoint</a>(0, i-1));</div><div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>&#160;    vector&lt;SubdivisionControlPoint*&gt; pts2;</div><div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;pts.size(); ++i) {</div><div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html">SubdivisionControlPoint</a>* point = pts[i];</div><div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>&#160;        QVector3D p = point-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a285325115089a1b99be4480bf6079bf1">getCoordinate</a>();</div><div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>&#160;        <span class="keywordflow">if</span> (p.y() != 0) {</div><div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>&#160;            p.setY(0);</div><div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionControlPoint.html">SubdivisionControlPoint</a>* pt = surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#af644edd0d4ba993dbab280f036b37171">addControlPoint</a>(p);</div><div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>&#160;            pts2.push_back(pt);</div><div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>&#160;        } <span class="keywordflow">else</span></div><div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>&#160;            pts2.push_back(point);</div><div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>&#160;    }</div><div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=1; i&lt;pts.size(); ++i) {</div><div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>&#160;        vector&lt;SubdivisionControlPoint*&gt; temp;</div><div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>&#160;        <span class="keywordflow">if</span> (find(temp.begin(), temp.end(), pts2[i]) == temp.end())</div><div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>&#160;            temp.push_back(pts2[i]);</div><div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>&#160;        <span class="keywordflow">if</span> (find(temp.begin(), temp.end(), pts2[i-1]) == temp.end())</div><div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>&#160;            temp.push_back(pts2[i-1]);</div><div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>&#160;        <span class="keywordflow">if</span> (find(temp.begin(), temp.end(), pts[i-1]) == temp.end())</div><div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>&#160;            temp.push_back(pts[i-1]);</div><div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>&#160;        <span class="keywordflow">if</span> (find(temp.begin(), temp.end(), pts[i]) == temp.end())</div><div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>&#160;            temp.push_back(pts[i]);</div><div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>&#160;        <span class="keywordflow">if</span> (temp.size() &gt; 2)</div><div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>&#160;            surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#abbbb7422a86771451034d2fb7a76bb26">addControlFace</a>(temp, <span class="keyword">false</span>, layer);</div><div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>&#160;    }</div><div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>&#160;</div><div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>&#160;    <span class="comment">// set transom as knuckle</span></div><div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=1; j&lt;chines.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); ++j) {</div><div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionControlEdge.html">SubdivisionControlEdge</a>* edge = surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a6a89be4440e3adfcb0b14c164db891ae">controlEdgeExists</a>(points.<a class="code" href="structShipCAD_1_1CPointGrid.html#a3899734154d0bbc614809a5151b1628c">getPoint</a>(np-1, j-1),</div><div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>&#160;                                                               points.<a class="code" href="structShipCAD_1_1CPointGrid.html#a3899734154d0bbc614809a5151b1628c">getPoint</a>(np-1, j));</div><div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>&#160;        <span class="keywordflow">if</span> (edge != <span class="keyword">nullptr</span>)</div><div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>&#160;            edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#ad0313b8844a81c5802533376a09fce99">setCrease</a>(<span class="keyword">true</span>);</div><div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>&#160;    }</div><div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>&#160;    <span class="comment">// delete unused layers</span></div><div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>&#160;    surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#ae250dca383fa87327a0ea85c933af0d2">deleteEmptyLayers</a>();</div><div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>&#160;    <span class="comment">// delete unused control points</span></div><div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a994923f432129431b30d6b532059a6ab">numberOfControlPoints</a>(); i&gt;=1; --i)</div><div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>&#160;        <span class="keywordflow">if</span> (surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a534abfeaab8e30436c7ba4f14048472a">getControlPoint</a>(i-1)-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a474297f7514f867f77ac35e50e9ce6aa">numberOfFaces</a>() == 0)</div><div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>&#160;            surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#ad4f874132a137e89a39e60572748dab0">deleteControlPoint</a>(surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#a534abfeaab8e30436c7ba4f14048472a">getControlPoint</a>(i-1));</div><div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>&#160;    surf-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#af052a1f171e5ee2d8048302b7e48706a">deleteElementsCollection</a>();</div><div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>&#160;    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a7ab84a738b747c4fcb2c3627e56d4bd0">extents</a>(min, max);</div><div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>&#160;    _settings.setBeam(2*max.y());</div><div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>&#160;    _settings.setLength(max.x() - min.x());</div><div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>&#160;    _settings.setDraft(1.0);</div><div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>&#160;    <a class="code" href="classShipCAD_1_1ShipCADModel.html#a6133fe12cd13b6ce24424e19a8b1e433">setPrecision</a>(<a class="code" href="namespaceShipCAD.html#ae13c7e36dfb1e2300741a631041cd915a0ea3ca30ae42b68a60d3a4cd4d08fa17">fpHigh</a>);</div><div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>&#160;    <a class="code" href="classShipCAD_1_1ShipCADModel.html#ab221977f2a8bd4d51d6ee777be0d7b8a">setBuild</a>(<span class="keyword">false</span>);</div><div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>&#160;}</div><div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>&#160;</div><div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a678530145785bd366316b35d2bd0ab67"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a678530145785bd366316b35d2bd0ab67">ShipCAD::SubdivisionSurface::setShowNormals</a></div><div class="ttdeci">void setShowNormals(bool val)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00338">subdivsurface.h:338</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a7e54e8d3a1b972014a3cd71cc57c74dc"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a7e54e8d3a1b972014a3cd71cc57c74dc">ShipCAD::ShipCADModel::acceptUndo</a></div><div class="ttdeci">void acceptUndo(UndoObject *undo)</div><div class="ttdoc">add an undo to the undo list </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00351">shipcadmodel.cpp:351</a></div></div>
<div class="ttc" id="structShipCAD_1_1CPointGrid_html"><div class="ttname"><a href="structShipCAD_1_1CPointGrid.html">ShipCAD::CPointGrid</a></div><div class="ttdef"><b>Definition:</b> <a href="pointgrid_8h_source.html#l00071">pointgrid.h:71</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlCurve_html_a1155b0abe401a7128369a589b6e6ac9c"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlCurve.html#a1155b0abe401a7128369a589b6e6ac9c">ShipCAD::SubdivisionControlCurve::addPoint</a></div><div class="ttdeci">void addPoint(SubdivisionControlPoint *p)</div><div class="ttdef"><b>Definition:</b> <a href="subdivcontrolcurve_8cpp_source.html#l00092">subdivcontrolcurve.cpp:92</a></div></div>
<div class="ttc" id="classShipCAD_1_1Preferences_html_a02a4e2aeef1d1cc16bc4a22525737866"><div class="ttname"><a href="classShipCAD_1_1Preferences.html#a02a4e2aeef1d1cc16bc4a22525737866">ShipCAD::Preferences::getGridColor</a></div><div class="ttdeci">QColor getGridColor() const </div><div class="ttdef"><b>Definition:</b> <a href="preferences_8h_source.html#l00097">preferences.h:97</a></div></div>
<div class="ttc" id="classShipCAD_1_1Viewport_html_a5f261a1925f09917013e8e532688326a"><div class="ttname"><a href="classShipCAD_1_1Viewport.html#a5f261a1925f09917013e8e532688326a">ShipCAD::Viewport::getViewportType</a></div><div class="ttdeci">viewport_type_t getViewportType() const </div><div class="ttdef"><b>Definition:</b> <a href="viewport_8h_source.html#l00097">viewport.h:97</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlPoint_html"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlPoint.html">ShipCAD::SubdivisionControlPoint</a></div><div class="ttdoc">3D Control point </div><div class="ttdef"><b>Definition:</b> <a href="subdivpoint_8h_source.html#l00208">subdivpoint.h:208</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionEdge_html_a445c08836100060818c129ea7c694234"><div class="ttname"><a href="classShipCAD_1_1SubdivisionEdge.html#a445c08836100060818c129ea7c694234">ShipCAD::SubdivisionEdge::setCurve</a></div><div class="ttdeci">void setCurve(SubdivisionControlCurve *curve)</div><div class="ttdef"><b>Definition:</b> <a href="subdivedge_8h_source.html#l00084">subdivedge.h:84</a></div></div>
<div class="ttc" id="classShipCAD_1_1ProjectSettings_html_aad72cb11575e7a1ae0cda2c50f8de2ad"><div class="ttname"><a href="classShipCAD_1_1ProjectSettings.html#aad72cb11575e7a1ae0cda2c50f8de2ad">ShipCAD::ProjectSettings::setLength</a></div><div class="ttdeci">void setLength(float length)</div><div class="ttdef"><b>Definition:</b> <a href="projsettings_8cpp_source.html#l00113">projsettings.cpp:113</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionPoint_html_abc15cbc4faebeb138c1a4a4890a3173b"><div class="ttname"><a href="classShipCAD_1_1SubdivisionPoint.html#abc15cbc4faebeb138c1a4a4890a3173b">ShipCAD::SubdivisionPoint::getVertexType</a></div><div class="ttdeci">vertex_type_t getVertexType() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivpoint_8h_source.html#l00169">subdivpoint.h:169</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a6133fe12cd13b6ce24424e19a8b1e433"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a6133fe12cd13b6ce24424e19a8b1e433">ShipCAD::ShipCADModel::setPrecision</a></div><div class="ttdeci">void setPrecision(precision_t precision)</div><div class="ttdoc">set precision of model </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00222">shipcadmodel.cpp:222</a></div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html_a04a94537b420a8d19dc5f78526e9a825"><div class="ttname"><a href="classShipCAD_1_1Spline.html#a04a94537b420a8d19dc5f78526e9a825">ShipCAD::Spline::getPoint</a></div><div class="ttdeci">QVector3D getPoint(size_t index) const </div><div class="ttdef"><b>Definition:</b> <a href="spline_8h_source.html#l00144">spline.h:144</a></div></div>
<div class="ttc" id="classShipCAD_1_1FileBuffer_html_af59c26297994b38aabc4bc678d04c246"><div class="ttname"><a href="classShipCAD_1_1FileBuffer.html#af59c26297994b38aabc4bc678d04c246">ShipCAD::FileBuffer::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdef"><b>Definition:</b> <a href="filebuffer_8cpp_source.html#l00058">filebuffer.cpp:58</a></div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html_ac3d9f4514573be91b316413bf062791a"><div class="ttname"><a href="classShipCAD_1_1Spline.html#ac3d9f4514573be91b316413bf062791a">ShipCAD::Spline::add</a></div><div class="ttdeci">void add(const QVector3D &amp;p)</div><div class="ttdoc">add a point to the spline </div><div class="ttdef"><b>Definition:</b> <a href="spline_8cpp_source.html#l00371">spline.cpp:371</a></div></div>
<div class="ttc" id="structShipCAD_1_1IntersectionSorter_html"><div class="ttname"><a href="structShipCAD_1_1IntersectionSorter.html">ShipCAD::IntersectionSorter</a></div><div class="ttdoc">sorting intersections in an IntersectionVector </div><div class="ttdef"><b>Definition:</b> <a href="intersection_8h_source.html#l00147">intersection.h:147</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a690bd5621d82d15a28ea59c09ded99d8"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a690bd5621d82d15a28ea59c09ded99d8">ShipCAD::ShipCADModel::clearSelectedItems</a></div><div class="ttdeci">void clearSelectedItems()</div><div class="ttdoc">clear all selected items </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00252">shipcadmodel.cpp:252</a></div></div>
<div class="ttc" id="classShipCAD_1_1HydrostaticCalc_html_a6528fe532bbb1121c73972906d108835"><div class="ttname"><a href="classShipCAD_1_1HydrostaticCalc.html#a6528fe532bbb1121c73972906d108835">ShipCAD::HydrostaticCalc::setDraft</a></div><div class="ttdeci">void setDraft(float draft)</div><div class="ttdef"><b>Definition:</b> <a href="hydrostaticcalc_8cpp_source.html#l00147">hydrostaticcalc.cpp:147</a></div></div>
<div class="ttc" id="classShipCAD_1_1ProjectSettings_html_a3590a9b52236a4aeb9991ea03c518871"><div class="ttname"><a href="classShipCAD_1_1ProjectSettings.html#a3590a9b52236a4aeb9991ea03c518871">ShipCAD::ProjectSettings::setSavePreview</a></div><div class="ttdeci">void setSavePreview(bool val)</div><div class="ttdoc">set the Save Preview setting </div><div class="ttdef"><b>Definition:</b> <a href="projsettings_8cpp_source.html#l00138">projsettings.cpp:138</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a83dbf01267c7736a8676336785178db6"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a83dbf01267c7736a8676336785178db6">ShipCAD::ShipCADModel::deleteSelected</a></div><div class="ttdeci">void deleteSelected()</div><div class="ttdoc">delete all selected items </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01164">shipcadmodel.cpp:1164</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionPoint_html_a474297f7514f867f77ac35e50e9ce6aa"><div class="ttname"><a href="classShipCAD_1_1SubdivisionPoint.html#a474297f7514f867f77ac35e50e9ce6aa">ShipCAD::SubdivisionPoint::numberOfFaces</a></div><div class="ttdeci">size_t numberOfFaces() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivpoint_8h_source.html#l00160">subdivpoint.h:160</a></div></div>
<div class="ttc" id="subdivface_8h_html"><div class="ttname"><a href="subdivface_8h.html">subdivface.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1ProjectSettings_html_adddd4471a30e16aa3aca62bb8bee3b02"><div class="ttname"><a href="classShipCAD_1_1ProjectSettings.html#adddd4471a30e16aa3aca62bb8bee3b02">ShipCAD::ProjectSettings::useDefaultMainframeLocation</a></div><div class="ttdeci">bool useDefaultMainframeLocation() const </div><div class="ttdef"><b>Definition:</b> <a href="projsettings_8h_source.html#l00082">projsettings.h:82</a></div></div>
<div class="ttc" id="structShipCAD_1_1CPointGrid_html_a1d5124b9486adbe884631c3b2b61165d"><div class="ttname"><a href="structShipCAD_1_1CPointGrid.html#a1d5124b9486adbe884631c3b2b61165d">ShipCAD::CPointGrid::setPoint</a></div><div class="ttdeci">void setPoint(size_t row, size_t col, SubdivisionControlPoint *pt)</div><div class="ttdef"><b>Definition:</b> <a href="pointgrid_8h_source.html#l00092">pointgrid.h:92</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_aeeeb05810f2e31ef89fd4ac6b6ba9c0aa1bc519e3e41c233dd8e94c40af1fd36d"><div class="ttname"><a href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aa1bc519e3e41c233dd8e94c40af1fd36d">ShipCAD::fvBodyplan</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00071">shipcadlib.h:71</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionLayer_html_a3861c77aeb283fbea6efe943ced83f41"><div class="ttname"><a href="classShipCAD_1_1SubdivisionLayer.html#a3861c77aeb283fbea6efe943ced83f41">ShipCAD::SubdivisionLayer::setName</a></div><div class="ttdeci">void setName(const QString &amp;val)</div><div class="ttdef"><b>Definition:</b> <a href="subdivlayer_8cpp_source.html#l00160">subdivlayer.cpp:160</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a83e2091e476b3ea89c75ecb25f46268b"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a83e2091e476b3ea89c75ecb25f46268b">ShipCAD::ShipCADModel::createIntersection</a></div><div class="ttdeci">Intersection * createIntersection(intersection_type_t ty, float distance)</div><div class="ttdoc">create an intersection </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00846">shipcadmodel.cpp:846</a></div></div>
<div class="ttc" id="classShipCAD_1_1ProjectSettings_html_a7b7fca3caf6e2dff52b96c818a87d13c"><div class="ttname"><a href="classShipCAD_1_1ProjectSettings.html#a7b7fca3caf6e2dff52b96c818a87d13c">ShipCAD::ProjectSettings::isShadeUnderwaterShip</a></div><div class="ttdeci">bool isShadeUnderwaterShip() const </div><div class="ttdef"><b>Definition:</b> <a href="projsettings_8h_source.html#l00156">projsettings.h:156</a></div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html_ae02af8d5473f952644ac5103d7beebf2"><div class="ttname"><a href="classShipCAD_1_1Spline.html#ae02af8d5473f952644ac5103d7beebf2">ShipCAD::Spline::setPoint</a></div><div class="ttdeci">void setPoint(size_t index, const QVector3D &amp;p)</div><div class="ttdef"><b>Definition:</b> <a href="spline_8cpp_source.html#l00103">spline.cpp:103</a></div></div>
<div class="ttc" id="classShipCAD_1_1ProjectSettings_html_acac72dbc1dc2f68c1d32981ac9a27603"><div class="ttname"><a href="classShipCAD_1_1ProjectSettings.html#acac72dbc1dc2f68c1d32981ac9a27603">ShipCAD::ProjectSettings::setMainframeLocation</a></div><div class="ttdeci">void setMainframeLocation(float loc)</div><div class="ttdef"><b>Definition:</b> <a href="projsettings_8cpp_source.html#l00122">projsettings.cpp:122</a></div></div>
<div class="ttc" id="pointgrid_8h_html"><div class="ttname"><a href="pointgrid_8h.html">pointgrid.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a5e9e159fc6c1fcd06cc14005bb0e51c8"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a5e9e159fc6c1fcd06cc14005bb0e51c8">ShipCAD::ShipCADModel::scaleModel</a></div><div class="ttdeci">void scaleModel(const QVector3D &amp;scale, bool override_lock, bool adjust_markers)</div><div class="ttdoc">scale the entire model and all associated data such as sttions </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00766">shipcadmodel.cpp:766</a></div></div>
<div class="ttc" id="classShipCAD_1_1Viewport_html_a0720a01f8650dc4acf89aad0649d9196"><div class="ttname"><a href="classShipCAD_1_1Viewport.html#a0720a01f8650dc4acf89aad0649d9196">ShipCAD::Viewport::setLineShader</a></div><div class="ttdeci">LineShader * setLineShader()</div><div class="ttdef"><b>Definition:</b> <a href="viewport_8cpp_source.html#l00232">viewport.cpp:232</a></div></div>
<div class="ttc" id="classShipCAD_1_1FileBuffer_html_a9a5d46b2c6d568ee2cdef110d4773e73"><div class="ttname"><a href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">ShipCAD::FileBuffer::add</a></div><div class="ttdeci">void add(const JPEGImage &amp;img)</div><div class="ttdef"><b>Definition:</b> <a href="filebuffer_8cpp_source.html#l00108">filebuffer.cpp:108</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_aa6af8872deba5b401ac575a85901a265"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#aa6af8872deba5b401ac575a85901a265">ShipCAD::ShipCADModel::getPreferences</a></div><div class="ttdeci">Preferences &amp; getPreferences()</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8h_source.html#l00077">shipcadmodel.h:77</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_aa7d2417dcc847ccf0f72d57eb333410e"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#aa7d2417dcc847ccf0f72d57eb333410e">ShipCAD::ShipCADModel::drawWithPainter</a></div><div class="ttdeci">void drawWithPainter(Viewport &amp;vp, QPainter *painter)</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00462">shipcadmodel.cpp:462</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_ad2f9dfd32667e9ac690de184b7e576f1"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#ad2f9dfd32667e9ac690de184b7e576f1">ShipCAD::ShipCADModel::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00066">shipcadmodel.cpp:66</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a259856fc21f2bc1eebbc52f10dd59469"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a259856fc21f2bc1eebbc52f10dd59469">ShipCAD::SubdivisionSurface::rebuild</a></div><div class="ttdeci">virtual void rebuild()</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l03440">subdivsurface.cpp:3440</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a0d969a8b0f05767d6507290f118d769c"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a0d969a8b0f05767d6507290f118d769c">ShipCAD::ShipCADModel::savePart</a></div><div class="ttdeci">void savePart(const QString &amp;filename, FileBuffer &amp;buffer, std::vector&lt; SubdivisionControlFace * &gt; &amp;faces)</div><div class="ttdoc">save selected faces as a part file </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01307">shipcadmodel.cpp:1307</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_ac719f8921c733e45c091b2ca0ce12237"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#ac719f8921c733e45c091b2ca0ce12237">ShipCAD::SubdivisionSurface::setControlPointSize</a></div><div class="ttdeci">void setControlPointSize(int sz)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00320">subdivsurface.h:320</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a6a735e1f8b3fdef0469ead5ed006e2a0"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a6a735e1f8b3fdef0469ead5ed006e2a0">ShipCAD::SubdivisionSurface::numberOfControlFaces</a></div><div class="ttdeci">size_t numberOfControlFaces() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00245">subdivsurface.h:245</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_adcf0db573afa7c865de68d0b36d41f15"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#adcf0db573afa7c865de68d0b36d41f15">ShipCAD::ShipCADModel::newModel</a></div><div class="ttdeci">void newModel(unit_type_t units, float length, float breadth, float draft, size_t rows, size_t cols)</div><div class="ttdoc">create a new model </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01220">shipcadmodel.cpp:1220</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a03171cc921c53a568b778f5131a60deba79fc4e40055439350070993be28ec8ca"><div class="ttname"><a href="namespaceShipCAD.html#a03171cc921c53a568b778f5131a60deba79fc4e40055439350070993be28ec8ca">ShipCAD::svCrease</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00141">shipcadlib.h:141</a></div></div>
<div class="ttc" id="classPointerVector_html_a65263559ccd6a9eac2904c691453867b"><div class="ttname"><a href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">PointerVector::size</a></div><div class="ttdeci">size_t size() const </div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00063">pointervec.h:63</a></div></div>
<div class="ttc" id="classShipCAD_1_1ProjectSettings_html_a9e0ce44e6aea8e57608baee2a3b05827"><div class="ttname"><a href="classShipCAD_1_1ProjectSettings.html#a9e0ce44e6aea8e57608baee2a3b05827">ShipCAD::ProjectSettings::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdef"><b>Definition:</b> <a href="projsettings_8cpp_source.html#l00355">projsettings.cpp:355</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a880f36455b3b35823ae14bdd62e20b31"><div class="ttname"><a href="namespaceShipCAD.html#a880f36455b3b35823ae14bdd62e20b31">ShipCAD::MarkerVectorIterator</a></div><div class="ttdeci">std::vector&lt; Marker * &gt;::iterator MarkerVectorIterator</div><div class="ttdef"><b>Definition:</b> <a href="marker_8h_source.html#l00084">marker.h:84</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_aeeeb05810f2e31ef89fd4ac6b6ba9c0aaccdacbf26c0ffe78ae55326537a28dc1"><div class="ttname"><a href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aaccdacbf26c0ffe78ae55326537a28dc1">ShipCAD::fvPerspective</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00074">shipcadlib.h:74</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a24b230e51a0c5fb3e7f51d0e2340eb9f"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a24b230e51a0c5fb3e7f51d0e2340eb9f">ShipCAD::SubdivisionSurface::getLayer</a></div><div class="ttdeci">SubdivisionLayer * getLayer(size_t index)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l01187">subdivsurface.cpp:1187</a></div></div>
<div class="ttc" id="classShipCAD_1_1Visibility_html_adf96eb2133086a34056f6c0f75556f13"><div class="ttname"><a href="classShipCAD_1_1Visibility.html#adf96eb2133086a34056f6c0f75556f13">ShipCAD::Visibility::isShowControlCurves</a></div><div class="ttdeci">bool isShowControlCurves() const </div><div class="ttdoc">show visibility of control curves </div><div class="ttdef"><b>Definition:</b> <a href="visibility_8h_source.html#l00218">visibility.h:218</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionLayer_html_a1d2811b35f699b4eda6a08b543863096"><div class="ttname"><a href="classShipCAD_1_1SubdivisionLayer.html#a1d2811b35f699b4eda6a08b543863096">ShipCAD::SubdivisionLayer::useInHydrostatics</a></div><div class="ttdeci">bool useInHydrostatics() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivlayer_8h_source.html#l00092">subdivlayer.h:92</a></div></div>
<div class="ttc" id="classShipCAD_1_1Intersection_html_ac0b838a811f8df5c2fa0b0ea44ba4bb7"><div class="ttname"><a href="classShipCAD_1_1Intersection.html#ac0b838a811f8df5c2fa0b0ea44ba4bb7">ShipCAD::Intersection::getPlane</a></div><div class="ttdeci">Plane getPlane()</div><div class="ttdoc">get the intersection plane </div><div class="ttdef"><b>Definition:</b> <a href="intersection_8h_source.html#l00084">intersection.h:84</a></div></div>
<div class="ttc" id="classPointerVector_html_a9f708acfaa3ce26d14b02d8e285c8729"><div class="ttname"><a href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">PointerVector::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00054">pointervec.h:54</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a50cca4c783baeba58c8068c9b8a5d6a4"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a50cca4c783baeba58c8068c9b8a5d6a4">ShipCAD::ShipCADModel::getVisibility</a></div><div class="ttdeci">Visibility &amp; getVisibility()</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8h_source.html#l00074">shipcadmodel.h:74</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a31d65b98d41ec379ae9f27b7cf66b079"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a31d65b98d41ec379ae9f27b7cf66b079">ShipCAD::ShipCADModel::canUndo</a></div><div class="ttdeci">bool canUndo() const </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00442">shipcadmodel.cpp:442</a></div></div>
<div class="ttc" id="classShipCAD_1_1ProjectSettings_html_a16a64f2a4a9b6359ac46b0a85f90a4ae"><div class="ttname"><a href="classShipCAD_1_1ProjectSettings.html#a16a64f2a4a9b6359ac46b0a85f90a4ae">ShipCAD::ProjectSettings::setDraft</a></div><div class="ttdeci">void setDraft(float draft)</div><div class="ttdef"><b>Definition:</b> <a href="projsettings_8cpp_source.html#l00104">projsettings.cpp:104</a></div></div>
<div class="ttc" id="classShipCAD_1_1Flowline_html_a2910767b8fc3beb218d84bbb9d35fd7d"><div class="ttname"><a href="classShipCAD_1_1Flowline.html#a2910767b8fc3beb218d84bbb9d35fd7d">ShipCAD::Flowline::loadBinary</a></div><div class="ttdeci">void loadBinary(FileBuffer &amp;source)</div><div class="ttdef"><b>Definition:</b> <a href="flowline_8cpp_source.html#l00531">flowline.cpp:531</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a8908d7adff0b1aa1ed118103c02c5402"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a8908d7adff0b1aa1ed118103c02c5402">ShipCAD::ShipCADModel::getButtocks</a></div><div class="ttdeci">IntersectionVector &amp; getButtocks()</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8h_source.html#l00156">shipcadmodel.h:156</a></div></div>
<div class="ttc" id="classShipCAD_1_1Visibility_html_a9aa81550e01813b9ec84b40aba5f904e"><div class="ttname"><a href="classShipCAD_1_1Visibility.html#a9aa81550e01813b9ec84b40aba5f904e">ShipCAD::Visibility::isShowGrid</a></div><div class="ttdeci">bool isShowGrid() const </div><div class="ttdoc">is grid shown </div><div class="ttdef"><b>Definition:</b> <a href="visibility_8h_source.html#l00141">visibility.h:141</a></div></div>
<div class="ttc" id="classShipCAD_1_1Plane_html_a5c3e18bcb1bb77563fd994866ba823df"><div class="ttname"><a href="classShipCAD_1_1Plane.html#a5c3e18bcb1bb77563fd994866ba823df">ShipCAD::Plane::setD</a></div><div class="ttdeci">void setD(float val)</div><div class="ttdef"><b>Definition:</b> <a href="plane_8h_source.html#l00068">plane.h:68</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlPoint_html_a85c52118d96f400be4705bf419b412c6"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlPoint.html#a85c52118d96f400be4705bf419b412c6">ShipCAD::SubdivisionControlPoint::isLocked</a></div><div class="ttdeci">bool isLocked() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivpoint_8h_source.html#l00234">subdivpoint.h:234</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_ac6a7a28b4b063771afae92decb602da5a867fb274949bd7c8474546b9d0fb703f"><div class="ttname"><a href="namespaceShipCAD.html#ac6a7a28b4b063771afae92decb602da5a867fb274949bd7c8474546b9d0fb703f">ShipCAD::fuMetric</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00119">shipcadlib.h:119</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_abf6fe62614aadf1cdd4f26fb4d3fc441"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#abf6fe62614aadf1cdd4f26fb4d3fc441">ShipCAD::SubdivisionSurface::setShowCurvature</a></div><div class="ttdeci">void setShowCurvature(bool val)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00332">subdivsurface.h:332</a></div></div>
<div class="ttc" id="namespaceEigen_html"><div class="ttname"><a href="namespaceEigen.html">Eigen</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_aa3415e1acf9bdb19e24f31f5138d6a60"><div class="ttname"><a href="namespaceShipCAD.html#aa3415e1acf9bdb19e24f31f5138d6a60">ShipCAD::k_current_version</a></div><div class="ttdeci">const version_t k_current_version</div><div class="ttdef"><b>Definition:</b> <a href="version_8h_source.html#l00064">version.h:64</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_abc1cf0168290242dfbe5dd0d178fa7cb"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#abc1cf0168290242dfbe5dd0d178fa7cb">ShipCAD::SubdivisionSurface::extents</a></div><div class="ttdeci">virtual void extents(QVector3D &amp;min, QVector3D &amp;max)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l02210">subdivsurface.cpp:2210</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a341f8be57a7cf6c04356a731b3b30c37"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a341f8be57a7cf6c04356a731b3b30c37">ShipCAD::ShipCADModel::removeSelectedFlowline</a></div><div class="ttdeci">void removeSelectedFlowline(Flowline *flow)</div><div class="ttdoc">deselect a flowline </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01151">shipcadmodel.cpp:1151</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a33962f53b44136c2840f8f7fa2e362f3"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a33962f53b44136c2840f8f7fa2e362f3">ShipCAD::ShipCADModel::setSelectedFlowline</a></div><div class="ttdeci">void setSelectedFlowline(Flowline *flow)</div><div class="ttdoc">set a flowline as selected </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01146">shipcadmodel.cpp:1146</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a994923f432129431b30d6b532059a6ab"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a994923f432129431b30d6b532059a6ab">ShipCAD::SubdivisionSurface::numberOfControlPoints</a></div><div class="ttdeci">size_t numberOfControlPoints() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00186">subdivsurface.h:186</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a1178d14769f22603340413c416d6631f"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a1178d14769f22603340413c416d6631f">ShipCAD::ShipCADModel::canRedo</a></div><div class="ttdeci">bool canRedo() const </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00447">shipcadmodel.cpp:447</a></div></div>
<div class="ttc" id="classShipCAD_1_1Visibility_html_a5c794da01fd292a34ceec882678aea63"><div class="ttname"><a href="classShipCAD_1_1Visibility.html#a5c794da01fd292a34ceec882678aea63">ShipCAD::Visibility::tempChangeModelView</a></div><div class="ttdeci">TempVarChange&lt; model_view_t &gt; tempChangeModelView(model_view_t temp)</div><div class="ttdef"><b>Definition:</b> <a href="visibility_8h_source.html#l00295">visibility.h:295</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_ac6a7a28b4b063771afae92decb602da5"><div class="ttname"><a href="namespaceShipCAD.html#ac6a7a28b4b063771afae92decb602da5">ShipCAD::unit_type_t</a></div><div class="ttdeci">unit_type_t</div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00118">shipcadlib.h:118</a></div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdoc">STL namespace. </div></div>
<div class="ttc" id="classShipCAD_1_1Intersection_html_a9e346019a52aa0540628b75994ea94a5"><div class="ttname"><a href="classShipCAD_1_1Intersection.html#a9e346019a52aa0540628b75994ea94a5">ShipCAD::Intersection::draw</a></div><div class="ttdeci">virtual void draw(Viewport &amp;vp, LineShader *lineshader)</div><div class="ttdef"><b>Definition:</b> <a href="intersection_8cpp_source.html#l00172">intersection.cpp:172</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_aabf54bc152176697a82c0eb6e47f5981"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#aabf54bc152176697a82c0eb6e47f5981">ShipCAD::SubdivisionSurface::setShowControlCurves</a></div><div class="ttdeci">void setShowControlCurves(bool val)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00335">subdivsurface.h:335</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_ab16487a794947608cace81a06552b2b1"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#ab16487a794947608cace81a06552b2b1">ShipCAD::ShipCADModel::findLowestHydrostaticsPoint</a></div><div class="ttdeci">float findLowestHydrostaticsPoint() const </div><div class="ttdoc">get the lowest underwater point of hull </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01066">shipcadmodel.cpp:1066</a></div></div>
<div class="ttc" id="structShipCAD_1_1DelftSeriesResistance_html"><div class="ttname"><a href="structShipCAD_1_1DelftSeriesResistance.html">ShipCAD::DelftSeriesResistance</a></div><div class="ttdef"><b>Definition:</b> <a href="resistance_8h_source.html#l00038">resistance.h:38</a></div></div>
<div class="ttc" id="flowline_8h_html"><div class="ttname"><a href="flowline_8h.html">flowline.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a2e6888d7b5e8d6346286d0262a93a183"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a2e6888d7b5e8d6346286d0262a93a183">ShipCAD::ShipCADModel::deleteMarker</a></div><div class="ttdeci">void deleteMarker(Marker *mark)</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01121">shipcadmodel.cpp:1121</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a5de7174c531ef00c607948496b3a8780"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a5de7174c531ef00c607948496b3a8780">ShipCAD::SubdivisionSurface::numberOfSelectedControlEdges</a></div><div class="ttdeci">size_t numberOfSelectedControlEdges() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00234">subdivsurface.h:234</a></div></div>
<div class="ttc" id="structShipCAD_1_1CPointGrid_html_a3899734154d0bbc614809a5151b1628c"><div class="ttname"><a href="structShipCAD_1_1CPointGrid.html#a3899734154d0bbc614809a5151b1628c">ShipCAD::CPointGrid::getPoint</a></div><div class="ttdeci">SubdivisionControlPoint * getPoint(size_t row, size_t col)</div><div class="ttdef"><b>Definition:</b> <a href="pointgrid_8h_source.html#l00088">pointgrid.h:88</a></div></div>
<div class="ttc" id="viewport_8h_html"><div class="ttname"><a href="viewport_8h.html">viewport.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a167bdeeb8995f102acdbb8cdb92f34e3"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a167bdeeb8995f102acdbb8cdb92f34e3">ShipCAD::ShipCADModel::loadPart</a></div><div class="ttdeci">bool loadPart(FileBuffer &amp;source, version_t &amp;partversion)</div><div class="ttdoc">load a part </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01402">shipcadmodel.cpp:1402</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a80ab3bd6372a8465d69f71034a353e06"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a80ab3bd6372a8465d69f71034a353e06">ShipCAD::SubdivisionSurface::clear</a></div><div class="ttdeci">virtual void clear()</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l01691">subdivsurface.cpp:1691</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_af052a1f171e5ee2d8048302b7e48706a"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#af052a1f171e5ee2d8048302b7e48706a">ShipCAD::SubdivisionSurface::deleteElementsCollection</a></div><div class="ttdeci">void deleteElementsCollection()</div><div class="ttdoc">delete elements marked for permanent removal </div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l00122">subdivsurface.cpp:122</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlCurve_html_ae5fbcecbf686e25e28a6b418719e8ecb"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlCurve.html#ae5fbcecbf686e25e28a6b418719e8ecb">ShipCAD::SubdivisionControlCurve::numberOfControlPoints</a></div><div class="ttdeci">size_t numberOfControlPoints() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivcontrolcurve_8h_source.html#l00079">subdivcontrolcurve.h:79</a></div></div>
<div class="ttc" id="classShipCAD_1_1ProjectSettings_html"><div class="ttname"><a href="classShipCAD_1_1ProjectSettings.html">ShipCAD::ProjectSettings</a></div><div class="ttdef"><b>Definition:</b> <a href="projsettings_8h_source.html#l00047">projsettings.h:47</a></div></div>
<div class="ttc" id="classShipCAD_1_1Visibility_html_a63588a3b8aa0a7dd37b19173a4802b47"><div class="ttname"><a href="classShipCAD_1_1Visibility.html#a63588a3b8aa0a7dd37b19173a4802b47">ShipCAD::Visibility::isShowInteriorEdges</a></div><div class="ttdeci">bool isShowInteriorEdges() const </div><div class="ttdoc">is interior edges shown </div><div class="ttdef"><b>Definition:</b> <a href="visibility_8h_source.html#l00163">visibility.h:163</a></div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html_aa62cf7afa6461bafce7227ec31875219"><div class="ttname"><a href="classShipCAD_1_1Spline.html#aa62cf7afa6461bafce7227ec31875219">ShipCAD::Spline::value</a></div><div class="ttdeci">QVector3D value(float parameter) const </div><div class="ttdef"><b>Definition:</b> <a href="spline_8cpp_source.html#l00806">spline.cpp:806</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a07daf75d876f80296f841f5c8d2327cb"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a07daf75d876f80296f841f5c8d2327cb">ShipCAD::ShipCADModel::setFilename</a></div><div class="ttdeci">void setFilename(const QString &amp;name)</div><div class="ttdoc">set the name of the file </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00267">shipcadmodel.cpp:267</a></div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html_a26293a4ee636c2b968c45731425d5c94"><div class="ttname"><a href="classShipCAD_1_1Spline.html#a26293a4ee636c2b968c45731425d5c94">ShipCAD::Spline::invert_direction</a></div><div class="ttdeci">void invert_direction()</div><div class="ttdoc">invert the direction of this spline </div><div class="ttdef"><b>Definition:</b> <a href="spline_8cpp_source.html#l00698">spline.cpp:698</a></div></div>
<div class="ttc" id="classPointerVector_html_a594866129f2e9a3701c1f414ca3299e3"><div class="ttname"><a href="classPointerVector.html#a594866129f2e9a3701c1f414ca3299e3">PointerVector::begin</a></div><div class="ttdeci">std::vector&lt; T * &gt;::iterator begin()</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00083">pointervec.h:83</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_ae250dca383fa87327a0ea85c933af0d2"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#ae250dca383fa87327a0ea85c933af0d2">ShipCAD::SubdivisionSurface::deleteEmptyLayers</a></div><div class="ttdeci">size_t deleteEmptyLayers()</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l00999">subdivsurface.cpp:999</a></div></div>
<div class="ttc" id="classShipCAD_1_1Flowline_html"><div class="ttname"><a href="classShipCAD_1_1Flowline.html">ShipCAD::Flowline</a></div><div class="ttdef"><b>Definition:</b> <a href="flowline_8h_source.html#l00049">flowline.h:49</a></div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html_ad4f075e2e8f1d3ac7c2d22b5be75bbad"><div class="ttname"><a href="classShipCAD_1_1Spline.html#ad4f075e2e8f1d3ac7c2d22b5be75bbad">ShipCAD::Spline::setKnuckle</a></div><div class="ttdeci">void setKnuckle(size_t index, bool val)</div><div class="ttdef"><b>Definition:</b> <a href="spline_8cpp_source.html#l00092">spline.cpp:92</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_ab221977f2a8bd4d51d6ee777be0d7b8a"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#ab221977f2a8bd4d51d6ee777be0d7b8a">ShipCAD::ShipCADModel::setBuild</a></div><div class="ttdeci">void setBuild(bool set)</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00173">shipcadmodel.cpp:173</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_aac25049d627953c15c5343b2f888f688"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#aac25049d627953c15c5343b2f888f688">ShipCAD::ShipCADModel::isFileChanged</a></div><div class="ttdeci">bool isFileChanged() const </div><div class="ttdoc">file changed flag </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8h_source.html#l00244">shipcadmodel.h:244</a></div></div>
<div class="ttc" id="classShipCAD_1_1Flowline_html_a9a07b50a90e9d96d347583dc15b5d07e"><div class="ttname"><a href="classShipCAD_1_1Flowline.html#a9a07b50a90e9d96d347583dc15b5d07e">ShipCAD::Flowline::construct</a></div><div class="ttdeci">static Flowline * construct(ShipCADModel *owner)</div><div class="ttdef"><b>Definition:</b> <a href="flowline_8cpp_source.html#l00050">flowline.cpp:50</a></div></div>
<div class="ttc" id="classShipCAD_1_1HydrostaticCalc_html_a0deeafff07f3bb77184df959bbd91266"><div class="ttname"><a href="classShipCAD_1_1HydrostaticCalc.html#a0deeafff07f3bb77184df959bbd91266">ShipCAD::HydrostaticCalc::setCalculated</a></div><div class="ttdeci">void setCalculated(bool calc)</div><div class="ttdef"><b>Definition:</b> <a href="hydrostaticcalc_8cpp_source.html#l00137">hydrostaticcalc.cpp:137</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a44ac7a48c0c01cae73bf723120071e72"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a44ac7a48c0c01cae73bf723120071e72">ShipCAD::ShipCADModel::setFileVersion</a></div><div class="ttdeci">void setFileVersion(version_t v)</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01086">shipcadmodel.cpp:1086</a></div></div>
<div class="ttc" id="undoobject_8h_html"><div class="ttname"><a href="undoobject_8h.html">undoobject.h</a></div></div>
<div class="ttc" id="exception_8h_html"><div class="ttname"><a href="exception_8h.html">exception.h</a></div></div>
<div class="ttc" id="classPointerVector_html_af28c2517157ddacfb4d92a4fc73c5a92"><div class="ttname"><a href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">PointerVector::get</a></div><div class="ttdeci">T * get(size_t index)</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00066">pointervec.h:66</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a036ed7f2f1f5e592c64ef8f0ccf29204"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a036ed7f2f1f5e592c64ef8f0ccf29204">ShipCAD::ShipCADModel::undoDataChanged</a></div><div class="ttdeci">void undoDataChanged()</div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html_aa15d52dbfa55ec3b1ec272104a45ebd5"><div class="ttname"><a href="classShipCAD_1_1Spline.html#aa15d52dbfa55ec3b1ec272104a45ebd5">ShipCAD::Spline::numberOfPoints</a></div><div class="ttdeci">size_t numberOfPoints() const </div><div class="ttdef"><b>Definition:</b> <a href="spline_8h_source.html#l00157">spline.h:157</a></div></div>
<div class="ttc" id="classShipCAD_1_1Intersection_html"><div class="ttname"><a href="classShipCAD_1_1Intersection.html">ShipCAD::Intersection</a></div><div class="ttdoc">List of curves intersecting hull. </div><div class="ttdef"><b>Definition:</b> <a href="intersection_8h_source.html#l00058">intersection.h:58</a></div></div>
<div class="ttc" id="subdivsurface_8h_html"><div class="ttname"><a href="subdivsurface_8h.html">subdivsurface.h</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a8c1484188fed1e735c5a94f64a6817ab"><div class="ttname"><a href="namespaceShipCAD.html#a8c1484188fed1e735c5a94f64a6817ab">ShipCAD::kFoot</a></div><div class="ttdeci">const float kFoot</div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00044">shipcadlib.h:44</a></div></div>
<div class="ttc" id="subdivpoint_8h_html"><div class="ttname"><a href="subdivpoint_8h.html">subdivpoint.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1Flowline_html_ad148400a3e53b2368b37c2c7f50ec1b7"><div class="ttname"><a href="classShipCAD_1_1Flowline.html#ad148400a3e53b2368b37c2c7f50ec1b7">ShipCAD::Flowline::setBuild</a></div><div class="ttdeci">virtual void setBuild(bool val)</div><div class="ttdef"><b>Definition:</b> <a href="flowline_8cpp_source.html#l00136">flowline.cpp:136</a></div></div>
<div class="ttc" id="classShipCAD_1_1Flowline_html_a58832002dec0b6ee8cb59e2fcc33f056"><div class="ttname"><a href="classShipCAD_1_1Flowline.html#a58832002dec0b6ee8cb59e2fcc33f056">ShipCAD::Flowline::initialize</a></div><div class="ttdeci">void initialize(QVector2D pt, viewport_type_t ty)</div><div class="ttdef"><b>Definition:</b> <a href="flowline_8cpp_source.html#l00064">flowline.cpp:64</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_ac1b60be4b08de357c6a1aa0f8e1c0a9b"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#ac1b60be4b08de357c6a1aa0f8e1c0a9b">ShipCAD::ShipCADModel::moveFaces</a></div><div class="ttdeci">void moveFaces(std::vector&lt; SubdivisionControlPoint * &gt; &amp;points, const QVector3D &amp;vec, bool adjust_markers)</div><div class="ttdoc">move selected faces and all associated data </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00812">shipcadmodel.cpp:812</a></div></div>
<div class="ttc" id="classShipCAD_1_1ProjectSettings_html_ad96c7b5dca9156a767dde327cf5b55c1"><div class="ttname"><a href="classShipCAD_1_1ProjectSettings.html#ad96c7b5dca9156a767dde327cf5b55c1">ShipCAD::ProjectSettings::getBeam</a></div><div class="ttdeci">float getBeam() const </div><div class="ttdef"><b>Definition:</b> <a href="projsettings_8h_source.html#l00070">projsettings.h:70</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a89923c0700e57eebf85332cfc9180765"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a89923c0700e57eebf85332cfc9180765">ShipCAD::ShipCADModel::buildValidFrameTable</a></div><div class="ttdeci">void buildValidFrameTable(SplineVector &amp;dest, bool close_at_deck)</div><div class="ttdoc">Assembles all stations and builds a 2D bodyplan. </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00091">shipcadmodel.cpp:91</a></div></div>
<div class="ttc" id="classShipCAD_1_1Entity_html_ab2f54a1745c95aa0871a8c57c114809e"><div class="ttname"><a href="classShipCAD_1_1Entity.html#ab2f54a1745c95aa0871a8c57c114809e">ShipCAD::Entity::isBuild</a></div><div class="ttdeci">bool isBuild() const </div><div class="ttdef"><b>Definition:</b> <a href="entity_8h_source.html#l00097">entity.h:97</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlFace_html_a9e205ab09b4660ab2b5377afaa620cd6"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlFace.html#a9e205ab09b4660ab2b5377afaa620cd6">ShipCAD::SubdivisionControlFace::getMin</a></div><div class="ttdeci">QVector3D getMin() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivface_8h_source.html#l00319">subdivface.h:319</a></div></div>
<div class="ttc" id="shipcadmodel_8cpp_html_a757b6d0d8ecafdb202c84d8aa65aefd1"><div class="ttname"><a href="shipcadmodel_8cpp.html#a757b6d0d8ecafdb202c84d8aa65aefd1">new_model_pts</a></div><div class="ttdeci">float new_model_pts[]</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01175">shipcadmodel.cpp:1175</a></div></div>
<div class="ttc" id="classShipCAD_1_1Viewport_html"><div class="ttname"><a href="classShipCAD_1_1Viewport.html">ShipCAD::Viewport</a></div><div class="ttdef"><b>Definition:</b> <a href="viewport_8h_source.html#l00070">viewport.h:70</a></div></div>
<div class="ttc" id="classShipCAD_1_1ProjectSettings_html_af9e707de58afaa87f639c2426dbb1161"><div class="ttname"><a href="classShipCAD_1_1ProjectSettings.html#af9e707de58afaa87f639c2426dbb1161">ShipCAD::ProjectSettings::getUnits</a></div><div class="ttdeci">unit_type_t getUnits() const </div><div class="ttdef"><b>Definition:</b> <a href="projsettings_8h_source.html#l00164">projsettings.h:164</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a31cd6dcb665c21c1626599d57ae73684"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a31cd6dcb665c21c1626599d57ae73684">ShipCAD::ShipCADModel::undo</a></div><div class="ttdeci">void undo()</div><div class="ttdoc">undo the last operation </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00394">shipcadmodel.cpp:394</a></div></div>
<div class="ttc" id="filebuffer_8h_html"><div class="ttname"><a href="filebuffer_8h.html">filebuffer.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1ParseError_html"><div class="ttname"><a href="classShipCAD_1_1ParseError.html">ShipCAD::ParseError</a></div><div class="ttdef"><b>Definition:</b> <a href="exception_8h_source.html#l00039">exception.h:39</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionLayer_html_a6fdfc0d208904d821349eb7380a52411"><div class="ttname"><a href="classShipCAD_1_1SubdivisionLayer.html#a6fdfc0d208904d821349eb7380a52411">ShipCAD::SubdivisionLayer::setDevelopable</a></div><div class="ttdeci">void setDevelopable(bool val)</div><div class="ttdef"><b>Definition:</b> <a href="subdivlayer_8cpp_source.html#l00153">subdivlayer.cpp:153</a></div></div>
<div class="ttc" id="classShipCAD_1_1ProjectSettings_html_a023b0fc90ce3b5befdcbf01485f04bc6"><div class="ttname"><a href="classShipCAD_1_1ProjectSettings.html#a023b0fc90ce3b5befdcbf01485f04bc6">ShipCAD::ProjectSettings::isMainParticularsSet</a></div><div class="ttdeci">bool isMainParticularsSet() const </div><div class="ttdef"><b>Definition:</b> <a href="projsettings_8h_source.html#l00067">projsettings.h:67</a></div></div>
<div class="ttc" id="classPointerVector_html"><div class="ttname"><a href="classPointerVector.html">PointerVector&lt; Spline &gt;</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a485f26282ac985446cdec3a98753c2eb"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a485f26282ac985446cdec3a98753c2eb">ShipCAD::SubdivisionSurface::getMinGausCurvature</a></div><div class="ttdeci">float getMinGausCurvature() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00310">subdivsurface.h:310</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_aafc30dd7d6b9db4ccfc7bf1c4e2b3b11"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#aafc30dd7d6b9db4ccfc7bf1c4e2b3b11">ShipCAD::ShipCADModel::getHydrostaticCalculations</a></div><div class="ttdeci">HydrostaticCalcVector &amp; getHydrostaticCalculations()</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8h_source.html#l00195">shipcadmodel.h:195</a></div></div>
<div class="ttc" id="classShipCAD_1_1Preferences_html_a9c1e6e137131d41b962ae1cb4a943bd0"><div class="ttname"><a href="classShipCAD_1_1Preferences.html#a9c1e6e137131d41b962ae1cb4a943bd0">ShipCAD::Preferences::setSurfaceColors</a></div><div class="ttdeci">void setSurfaceColors(SubdivisionSurface &amp;surface)</div><div class="ttdef"><b>Definition:</b> <a href="preferences_8cpp_source.html#l00080">preferences.cpp:80</a></div></div>
<div class="ttc" id="classShipCAD_1_1Entity_html_a7c4227afa7a356a667224cfba69a24e5"><div class="ttname"><a href="classShipCAD_1_1Entity.html#a7c4227afa7a356a667224cfba69a24e5">ShipCAD::Entity::getMin</a></div><div class="ttdeci">QVector3D getMin() const </div><div class="ttdef"><b>Definition:</b> <a href="entity_8cpp_source.html#l00076">entity.cpp:76</a></div></div>
<div class="ttc" id="classShipCAD_1_1FileBuffer_html_a86223c54bcf111ef205c9d651e0b9a66"><div class="ttname"><a href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">ShipCAD::FileBuffer::load</a></div><div class="ttdeci">void load(JPEGImage &amp;img)</div><div class="ttdef"><b>Definition:</b> <a href="filebuffer_8cpp_source.html#l00096">filebuffer.cpp:96</a></div></div>
<div class="ttc" id="classShipCAD_1_1Visibility_html_adae35f2eb31f5d468674ab9856a39637"><div class="ttname"><a href="classShipCAD_1_1Visibility.html#adae35f2eb31f5d468674ab9856a39637">ShipCAD::Visibility::isShowMarkers</a></div><div class="ttdeci">bool isShowMarkers() const </div><div class="ttdoc">show visibility of markers </div><div class="ttdef"><b>Definition:</b> <a href="visibility_8h_source.html#l00174">visibility.h:174</a></div></div>
<div class="ttc" id="subdivedge_8h_html"><div class="ttname"><a href="subdivedge_8h.html">subdivedge.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_ac7aabd58923105ec36b27d44d747aa42"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#ac7aabd58923105ec36b27d44d747aa42">ShipCAD::ShipCADModel::isSelectedMarker</a></div><div class="ttdeci">bool isSelectedMarker(Marker *mark) const </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01094">shipcadmodel.cpp:1094</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a64c7c4ddffffdd1be2f27eb4210af2b7"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a64c7c4ddffffdd1be2f27eb4210af2b7">ShipCAD::ShipCADModel::saveBinary</a></div><div class="ttdeci">void saveBinary(FileBuffer &amp;dest)</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01020">shipcadmodel.cpp:1020</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_ac7f369ecf1a53a751f8774263d3ecd95"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#ac7f369ecf1a53a751f8774263d3ecd95">ShipCAD::ShipCADModel::redo</a></div><div class="ttdeci">void redo()</div><div class="ttdoc">redo the last undo </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00420">shipcadmodel.cpp:420</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a6be8a5765b6b9ee5b5dc0397bdd43be5"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a6be8a5765b6b9ee5b5dc0397bdd43be5">ShipCAD::ShipCADModel::loadPreview</a></div><div class="ttdeci">void loadPreview(FileBuffer &amp;source, QImage *image)</div><div class="ttdoc">load the preview image from a file </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00905">shipcadmodel.cpp:905</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a81d5637d3b405da5975eb8e86d058bcd"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a81d5637d3b405da5975eb8e86d058bcd">ShipCAD::SubdivisionSurface::setMainframeLocation</a></div><div class="ttdeci">void setMainframeLocation(float val)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00317">subdivsurface.h:317</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a859625224375157010421a69f96ec639"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a859625224375157010421a69f96ec639">ShipCAD::ShipCADModel::countSelectedItems</a></div><div class="ttdeci">size_t countSelectedItems() const </div><div class="ttdoc">count the number of currently selected items </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00239">shipcadmodel.cpp:239</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionPoint_html_a614259dfa2470bbbd7b8cc73039ad501"><div class="ttname"><a href="classShipCAD_1_1SubdivisionPoint.html#a614259dfa2470bbbd7b8cc73039ad501">ShipCAD::SubdivisionPoint::setVertexType</a></div><div class="ttdeci">void setVertexType(vertex_type_t nt)</div><div class="ttdef"><b>Definition:</b> <a href="subdivpoint_8h_source.html#l00170">subdivpoint.h:170</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionFace_html_a5da55a479cd54b90fc0ec5d0bedb9279"><div class="ttname"><a href="classShipCAD_1_1SubdivisionFace.html#a5da55a479cd54b90fc0ec5d0bedb9279">ShipCAD::SubdivisionFace::getLastPoint</a></div><div class="ttdeci">SubdivisionPoint * getLastPoint() const </div><div class="ttdoc">get last point in face </div><div class="ttdef"><b>Definition:</b> <a href="subdivface_8cpp_source.html#l00154">subdivface.cpp:154</a></div></div>
<div class="ttc" id="classShipCAD_1_1UndoObject_html_a9cace556c2092492f681654d72e35ba6"><div class="ttname"><a href="classShipCAD_1_1UndoObject.html#a9cace556c2092492f681654d72e35ba6">ShipCAD::UndoObject::restore</a></div><div class="ttdeci">void restore()</div><div class="ttdef"><b>Definition:</b> <a href="undoobject_8cpp_source.html#l00059">undoobject.cpp:59</a></div></div>
<div class="ttc" id="classShipCAD_1_1UndoObject_html_aa6eac6ad9b80700ed37e354f970ff812"><div class="ttname"><a href="classShipCAD_1_1UndoObject.html#aa6eac6ad9b80700ed37e354f970ff812">ShipCAD::UndoObject::setUndoText</a></div><div class="ttdeci">void setUndoText(const QString &amp;txt)</div><div class="ttdef"><b>Definition:</b> <a href="undoobject_8h_source.html#l00063">undoobject.h:63</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_aec5073750762d1f8c3ab2107a742f4a5"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#aec5073750762d1f8c3ab2107a742f4a5">ShipCAD::SubdivisionSurface::setBuild</a></div><div class="ttdeci">virtual void setBuild(bool val)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l01380">subdivsurface.cpp:1380</a></div></div>
<div class="ttc" id="classShipCAD_1_1ProjectSettings_html_ac90d2a093ae0af951fd117d7f6981e92"><div class="ttname"><a href="classShipCAD_1_1ProjectSettings.html#ac90d2a093ae0af951fd117d7f6981e92">ShipCAD::ProjectSettings::setBeam</a></div><div class="ttdeci">void setBeam(float beam)</div><div class="ttdef"><b>Definition:</b> <a href="projsettings_8cpp_source.html#l00095">projsettings.cpp:95</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a797d9b728f794b7f2fc61f1c51dacc06"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a797d9b728f794b7f2fc61f1c51dacc06">ShipCAD::SubdivisionSurface::setShadeUnderWater</a></div><div class="ttdeci">void setShadeUnderWater(bool val)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00333">subdivsurface.h:333</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlFace_html"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlFace.html">ShipCAD::SubdivisionControlFace</a></div><div class="ttdef"><b>Definition:</b> <a href="subdivface_8h_source.html#l00219">subdivface.h:219</a></div></div>
<div class="ttc" id="classShipCAD_1_1UndoObject_html"><div class="ttname"><a href="classShipCAD_1_1UndoObject.html">ShipCAD::UndoObject</a></div><div class="ttdef"><b>Definition:</b> <a href="undoobject_8h_source.html#l00044">undoobject.h:44</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlFace_html_a25e4ea676adc327a430b50a81e91ef9d"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlFace.html#a25e4ea676adc327a430b50a81e91ef9d">ShipCAD::SubdivisionControlFace::getLayer</a></div><div class="ttdeci">SubdivisionLayer * getLayer() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivface_8h_source.html#l00307">subdivface.h:307</a></div></div>
<div class="ttc" id="subdivlayer_8h_html"><div class="ttname"><a href="subdivlayer_8h.html">subdivlayer.h</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_ae13c7e36dfb1e2300741a631041cd915a493cc0c95c59b2a1a0ca04b7a337295b"><div class="ttname"><a href="namespaceShipCAD.html#ae13c7e36dfb1e2300741a631041cd915a493cc0c95c59b2a1a0ca04b7a337295b">ShipCAD::fpLow</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00129">shipcadlib.h:129</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_abc5faaa00b4b34bc1b0b1cd52af4ab3b"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#abc5faaa00b4b34bc1b0b1cd52af4ab3b">ShipCAD::ShipCADModel::getMarkers</a></div><div class="ttdeci">MarkerVector &amp; getMarkers()</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8h_source.html#l00198">shipcadmodel.h:198</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a67437198ee14f74e6c5277d761894863a109cd328af19be260371a7e5333043f8"><div class="ttname"><a href="namespaceShipCAD.html#a67437198ee14f74e6c5277d761894863a109cd328af19be260371a7e5333043f8">ShipCAD::vmWireFrame</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00063">shipcadlib.h:63</a></div></div>
<div class="ttc" id="classShipCAD_1_1TempVarChange_html"><div class="ttname"><a href="classShipCAD_1_1TempVarChange.html">ShipCAD::TempVarChange</a></div><div class="ttdef"><b>Definition:</b> <a href="tempvar_8h_source.html#l00035">tempvar.h:35</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_af719e24c12a21220c105fc7510d7b8ad"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#af719e24c12a21220c105fc7510d7b8ad">ShipCAD::ShipCADModel::drawGrid</a></div><div class="ttdeci">void drawGrid(Viewport &amp;vp, QPainter *painter)</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00469">shipcadmodel.cpp:469</a></div></div>
<div class="ttc" id="classShipCAD_1_1UndoObject_html_a160e77df4c6ae2bdefc5257aa8e6d85b"><div class="ttname"><a href="classShipCAD_1_1UndoObject.html#a160e77df4c6ae2bdefc5257aa8e6d85b">ShipCAD::UndoObject::getUndoData</a></div><div class="ttdeci">FileBuffer &amp; getUndoData()</div><div class="ttdef"><b>Definition:</b> <a href="undoobject_8h_source.html#l00065">undoobject.h:65</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionLayer_html_a2e1538a000268fe5f56bf2bea4973c23"><div class="ttname"><a href="classShipCAD_1_1SubdivisionLayer.html#a2e1538a000268fe5f56bf2bea4973c23">ShipCAD::SubdivisionLayer::getFace</a></div><div class="ttdeci">SubdivisionControlFace * getFace(size_t index)</div><div class="ttdef"><b>Definition:</b> <a href="subdivlayer_8cpp_source.html#l00083">subdivlayer.cpp:83</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a6fc43771e5ab6fe985ed894f4a1f779c"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a6fc43771e5ab6fe985ed894f4a1f779c">ShipCAD::ShipCADModel::getUndoMemory</a></div><div class="ttdeci">size_t getUndoMemory() const </div><div class="ttdoc">get amount of memory used for undo </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00386">shipcadmodel.cpp:386</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a1b27573aab3a458f9002a7e4e327736a"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a1b27573aab3a458f9002a7e4e327736a">ShipCAD::ShipCADModel::rebuildModel</a></div><div class="ttdeci">void rebuildModel(bool redo_intersections)</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00192">shipcadmodel.cpp:192</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_afcac043bc1d1c627e95ca1bc4aa0174e"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#afcac043bc1d1c627e95ca1bc4aa0174e">ShipCAD::ShipCADModel::isSelectedFlowline</a></div><div class="ttdeci">bool isSelectedFlowline(Flowline *flow) const </div><div class="ttdoc">is the flowline selected </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01140">shipcadmodel.cpp:1140</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_aeeeb05810f2e31ef89fd4ac6b6ba9c0a"><div class="ttname"><a href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0a">ShipCAD::viewport_type_t</a></div><div class="ttdeci">viewport_type_t</div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00070">shipcadlib.h:70</a></div></div>
<div class="ttc" id="classShipCAD_1_1ProjectSettings_html_a0fe6c2dde04c7172c334736516950b51"><div class="ttname"><a href="classShipCAD_1_1ProjectSettings.html#a0fe6c2dde04c7172c334736516950b51">ShipCAD::ProjectSettings::getDraft</a></div><div class="ttdeci">float getDraft() const </div><div class="ttdef"><b>Definition:</b> <a href="projsettings_8h_source.html#l00074">projsettings.h:74</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a66144e3f3a53da01f51c9bdb94fcae31a756e1b357bd617f738749df02e51be25"><div class="ttname"><a href="namespaceShipCAD.html#a66144e3f3a53da01f51c9bdb94fcae31a756e1b357bd617f738749df02e51be25">ShipCAD::emSelectItems</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00136">shipcadlib.h:136</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a86da3ca66e90403ead21ccc67f584c52"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a86da3ca66e90403ead21ccc67f584c52">ShipCAD::ShipCADModel::getStations</a></div><div class="ttdeci">IntersectionVector &amp; getStations()</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8h_source.html#l00154">shipcadmodel.h:154</a></div></div>
<div class="ttc" id="classShipCAD_1_1FileBuffer_html"><div class="ttname"><a href="classShipCAD_1_1FileBuffer.html">ShipCAD::FileBuffer</a></div><div class="ttdoc">in-memory buffer for a binary file (FREE!Ship format) </div><div class="ttdef"><b>Definition:</b> <a href="filebuffer_8h_source.html#l00052">filebuffer.h:52</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_af5380f1a7932b23a5fbf400c85542381"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#af5380f1a7932b23a5fbf400c85542381">ShipCAD::SubdivisionSurface::setShowControlNet</a></div><div class="ttdeci">void setShowControlNet(bool val)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00334">subdivsurface.h:334</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a0b63ee25a8d0da862fc8f123260e4f7d"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a0b63ee25a8d0da862fc8f123260e4f7d">ShipCAD::SubdivisionSurface::numberOfSelectedControlCurves</a></div><div class="ttdeci">size_t numberOfSelectedControlCurves() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00278">subdivsurface.h:278</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_aa56834b730aafdf2786ddc9a60a046fda44c99d1edb96c2c22b5661d927eb9041"><div class="ttname"><a href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fda44c99d1edb96c2c22b5661d927eb9041">ShipCAD::fiWaterline</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00114">shipcadlib.h:114</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a0e9a74dd26baa734437aba2ee05fa940"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a0e9a74dd26baa734437aba2ee05fa940">ShipCAD::ShipCADModel::createUndo</a></div><div class="ttdeci">UndoObject * createUndo(const QString &amp;undotext, bool accept)</div><div class="ttdoc">create an undo object </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00281">shipcadmodel.cpp:281</a></div></div>
<div class="ttc" id="structdraw__intersection_html_a4550bf7c1203e48abdc041e4e248c5f7"><div class="ttname"><a href="structdraw__intersection.html#a4550bf7c1203e48abdc041e4e248c5f7">draw_intersection::_vp</a></div><div class="ttdeci">Viewport &amp; _vp</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00668">shipcadmodel.cpp:668</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_ae13c7e36dfb1e2300741a631041cd915"><div class="ttname"><a href="namespaceShipCAD.html#ae13c7e36dfb1e2300741a631041cd915">ShipCAD::precision_t</a></div><div class="ttdeci">precision_t</div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00128">shipcadlib.h:128</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a976358235d20a0fdc83248948bb9cf48"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a976358235d20a0fdc83248948bb9cf48">ShipCAD::SubdivisionSurface::addControlEdge</a></div><div class="ttdeci">SubdivisionControlEdge * addControlEdge(SubdivisionPoint *sp, SubdivisionPoint *ep)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l01559">subdivsurface.cpp:1559</a></div></div>
<div class="ttc" id="classShipCAD_1_1ProjectSettings_html_a194fe12f81ed80e691e8a89c88d91a0b"><div class="ttname"><a href="classShipCAD_1_1ProjectSettings.html#a194fe12f81ed80e691e8a89c88d91a0b">ShipCAD::ProjectSettings::getMainframeLocation</a></div><div class="ttdeci">float getMainframeLocation() const </div><div class="ttdef"><b>Definition:</b> <a href="projsettings_8cpp_source.html#l00079">projsettings.cpp:79</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionFace_html_a68bc7676c4f254ddb19e04f8cb5ba76f"><div class="ttname"><a href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">ShipCAD::SubdivisionFace::getPoint</a></div><div class="ttdeci">SubdivisionPoint * getPoint(size_t index) const </div><div class="ttdoc">get face point </div><div class="ttdef"><b>Definition:</b> <a href="subdivface_8cpp_source.html#l00147">subdivface.cpp:147</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_abbbb7422a86771451034d2fb7a76bb26"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#abbbb7422a86771451034d2fb7a76bb26">ShipCAD::SubdivisionSurface::addControlFace</a></div><div class="ttdeci">void addControlFace(SubdivisionControlFace *face)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l01166">subdivsurface.cpp:1166</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionEdge_html_ad0313b8844a81c5802533376a09fce99"><div class="ttname"><a href="classShipCAD_1_1SubdivisionEdge.html#ad0313b8844a81c5802533376a09fce99">ShipCAD::SubdivisionEdge::setCrease</a></div><div class="ttdeci">void setCrease(bool val)</div><div class="ttdef"><b>Definition:</b> <a href="subdivedge_8cpp_source.html#l00168">subdivedge.cpp:168</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_aa5d3fc63603d716d3e24244049e1e510"><div class="ttname"><a href="namespaceShipCAD.html#aa5d3fc63603d716d3e24244049e1e510">ShipCAD::MinMax</a></div><div class="ttdeci">void MinMax(const QVector3D &amp;p, QVector3D &amp;min, QVector3D &amp;max)</div><div class="ttdoc">find the min and max coordinates from a point </div><div class="ttdef"><b>Definition:</b> <a href="utility_8cpp_source.html#l00040">utility.cpp:40</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a94a8eed8ac8ff4ad8287a0a1113e3271"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a94a8eed8ac8ff4ad8287a0a1113e3271">ShipCAD::ShipCADModel::getProjectSettings</a></div><div class="ttdeci">ProjectSettings &amp; getProjectSettings()</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8h_source.html#l00076">shipcadmodel.h:76</a></div></div>
<div class="ttc" id="classPointerVector_html_a6182f5429c4c98ba2556d40484aab2f9"><div class="ttname"><a href="classPointerVector.html#a6182f5429c4c98ba2556d40484aab2f9">PointerVector::end</a></div><div class="ttdeci">std::vector&lt; T * &gt;::iterator end()</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00086">pointervec.h:86</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a534abfeaab8e30436c7ba4f14048472a"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a534abfeaab8e30436c7ba4f14048472a">ShipCAD::SubdivisionSurface::getControlPoint</a></div><div class="ttdeci">SubdivisionControlPoint * getControlPoint(size_t index) const </div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l01049">subdivsurface.cpp:1049</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a03171cc921c53a568b778f5131a60deba8d802131f84b0a9edf8a419eded859d0"><div class="ttname"><a href="namespaceShipCAD.html#a03171cc921c53a568b778f5131a60deba8d802131f84b0a9edf8a419eded859d0">ShipCAD::svCorner</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00143">shipcadlib.h:143</a></div></div>
<div class="ttc" id="classShipCAD_1_1Flowline_html_a28e5d73316c6d2c8005428669a9e9b97"><div class="ttname"><a href="classShipCAD_1_1Flowline.html#a28e5d73316c6d2c8005428669a9e9b97">ShipCAD::Flowline::rebuild</a></div><div class="ttdeci">virtual void rebuild()</div><div class="ttdef"><b>Definition:</b> <a href="flowline_8cpp_source.html#l00364">flowline.cpp:364</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_af3a6fa23a7318acbda7b0066b53d694fad37dee2f48dd8e2dacbb6ffb3928c7ea"><div class="ttname"><a href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694fad37dee2f48dd8e2dacbb6ffb3928c7ea">ShipCAD::fv180</a></div><div class="ttdef"><b>Definition:</b> <a href="version_8h_source.html#l00049">version.h:49</a></div></div>
<div class="ttc" id="classShipCAD_1_1HydrostaticCalc_html_a90ae18aaf3a9836d01594cda165f35bb"><div class="ttname"><a href="classShipCAD_1_1HydrostaticCalc.html#a90ae18aaf3a9836d01594cda165f35bb">ShipCAD::HydrostaticCalc::getTrim</a></div><div class="ttdeci">float getTrim() const </div><div class="ttdoc">get the trim for this calculation (distance, not angle) </div><div class="ttdef"><b>Definition:</b> <a href="hydrostaticcalc_8h_source.html#l00178">hydrostaticcalc.h:178</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a2eddf75f0e29363ab81a3fb0e0211848"><div class="ttname"><a href="namespaceShipCAD.html#a2eddf75f0e29363ab81a3fb0e0211848">ShipCAD::JoinSplineSegments</a></div><div class="ttdeci">void JoinSplineSegments(float join_error, bool force_to_one_segment, SplineVector &amp;list)</div><div class="ttdoc">join a set of linesegments and connect them into as few as possible splines </div><div class="ttdef"><b>Definition:</b> <a href="utility_8cpp_source.html#l00428">utility.cpp:428</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_ae416df4a72579eb3a1a418b19551eb53"><div class="ttname"><a href="namespaceShipCAD.html#ae416df4a72579eb3a1a418b19551eb53">ShipCAD::ChangeFileExt</a></div><div class="ttdeci">QString ChangeFileExt(const QString &amp;name, const QString &amp;ext)</div><div class="ttdoc">Append or change the file extension to that given. </div><div class="ttdef"><b>Definition:</b> <a href="utility_8cpp_source.html#l00569">utility.cpp:569</a></div></div>
<div class="ttc" id="classShipCAD_1_1Preferences_html_a97b3c3d9765e4b726f20f9853d4843dd"><div class="ttname"><a href="classShipCAD_1_1Preferences.html#a97b3c3d9765e4b726f20f9853d4843dd">ShipCAD::Preferences::getGridFontColor</a></div><div class="ttdeci">QColor getGridFontColor() const </div><div class="ttdef"><b>Definition:</b> <a href="preferences_8h_source.html#l00099">preferences.h:99</a></div></div>
<div class="ttc" id="classShipCAD_1_1Intersection_html_a2b496f9ab21c5fc4a7b97a665b24f2b1"><div class="ttname"><a href="classShipCAD_1_1Intersection.html#a2b496f9ab21c5fc4a7b97a665b24f2b1">ShipCAD::Intersection::setBuild</a></div><div class="ttdeci">virtual void setBuild(bool val)</div><div class="ttdef"><b>Definition:</b> <a href="intersection_8cpp_source.html#l00073">intersection.cpp:73</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a53271216c1be89154c08d2b2841f9a60"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a53271216c1be89154c08d2b2841f9a60">ShipCAD::SubdivisionSurface::setDesiredSubdivisionLevel</a></div><div class="ttdeci">void setDesiredSubdivisionLevel(int val)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l01457">subdivsurface.cpp:1457</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a6c147a75fa02e43145de346efb9542fd"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a6c147a75fa02e43145de346efb9542fd">ShipCAD::ShipCADModel::getWaterlines</a></div><div class="ttdeci">IntersectionVector &amp; getWaterlines()</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8h_source.html#l00155">shipcadmodel.h:155</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a578aeb421311cb0f0080762b403577b6"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a578aeb421311cb0f0080762b403577b6">ShipCAD::SubdivisionSurface::numberOfSelectedControlPoints</a></div><div class="ttdeci">size_t numberOfSelectedControlPoints() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00201">subdivsurface.h:201</a></div></div>
<div class="ttc" id="classShipCAD_1_1HydrostaticCalc_html_ace579596fa77d8e3ea4f854ca033ed83"><div class="ttname"><a href="classShipCAD_1_1HydrostaticCalc.html#ace579596fa77d8e3ea4f854ca033ed83">ShipCAD::HydrostaticCalc::setTrim</a></div><div class="ttdeci">void setTrim(float trim)</div><div class="ttdoc">set the trim for this calculation (distance, not angle) </div><div class="ttdef"><b>Definition:</b> <a href="hydrostaticcalc_8cpp_source.html#l00171">hydrostaticcalc.cpp:171</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_ae03a368cf40f1781fb0ed8a60248dcc6"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#ae03a368cf40f1781fb0ed8a60248dcc6">ShipCAD::ShipCADModel::loadChinesFromText</a></div><div class="ttdeci">void loadChinesFromText(QTextStream &amp;file, SplineVector &amp;splines)</div><div class="ttdoc">load splines from a text file </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01530">shipcadmodel.cpp:1530</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionLayer_html_ad0d77de06b53814e248fc9bbfa908252"><div class="ttname"><a href="classShipCAD_1_1SubdivisionLayer.html#ad0d77de06b53814e248fc9bbfa908252">ShipCAD::SubdivisionLayer::numberOfFaces</a></div><div class="ttdeci">size_t numberOfFaces() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivlayer_8h_source.html#l00071">subdivlayer.h:71</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_afd7e984f4070d08cb16264c1b731580f"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#afd7e984f4070d08cb16264c1b731580f">ShipCAD::ShipCADModel::setSelectedMarker</a></div><div class="ttdeci">void setSelectedMarker(Marker *mark)</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01100">shipcadmodel.cpp:1100</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a4c29a9dd9e31c652a82b6398c8f7b983"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a4c29a9dd9e31c652a82b6398c8f7b983">ShipCAD::ShipCADModel::getFilename</a></div><div class="ttdeci">QString getFilename() const </div><div class="ttdoc">name of file </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00259">shipcadmodel.cpp:259</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlEdge_html"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlEdge.html">ShipCAD::SubdivisionControlEdge</a></div><div class="ttdef"><b>Definition:</b> <a href="subdivedge_8h_source.html#l00116">subdivedge.h:116</a></div></div>
<div class="ttc" id="classShipCAD_1_1BackgroundImage_html_a72abed6b5cdbd287ec41c817acf84de9"><div class="ttname"><a href="classShipCAD_1_1BackgroundImage.html#a72abed6b5cdbd287ec41c817acf84de9">ShipCAD::BackgroundImage::loadBinary</a></div><div class="ttdeci">void loadBinary(FileBuffer &amp;source)</div><div class="ttdef"><b>Definition:</b> <a href="backgroundimage_8cpp_source.html#l00049">backgroundimage.cpp:49</a></div></div>
<div class="ttc" id="structdraw__intersection_html"><div class="ttname"><a href="structdraw__intersection.html">draw_intersection</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00666">shipcadmodel.cpp:666</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_aa8079da42c7e5ab56ff60af82432d29d"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#aa8079da42c7e5ab56ff60af82432d29d">ShipCAD::ShipCADModel::createRedo</a></div><div class="ttdeci">UndoObject * createRedo()</div><div class="ttdoc">create temp redo object at end of undo list </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00321">shipcadmodel.cpp:321</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a837f41ecb002cd0e197d365edbef3d52"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a837f41ecb002cd0e197d365edbef3d52">ShipCAD::ShipCADModel::getFileVersion</a></div><div class="ttdeci">version_t getFileVersion() const </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8h_source.html#l00151">shipcadmodel.h:151</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a2a984cc9ae8c78153113552cfb6321d5"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a2a984cc9ae8c78153113552cfb6321d5">ShipCAD::SubdivisionSurface::clearSelection</a></div><div class="ttdeci">void clearSelection()</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l01749">subdivsurface.cpp:1749</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlCurve_html_a40ad888b65a29ca25d39a15f37cb53c0"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlCurve.html#a40ad888b65a29ca25d39a15f37cb53c0">ShipCAD::SubdivisionControlCurve::getControlPoint</a></div><div class="ttdeci">SubdivisionControlPoint * getControlPoint(size_t index) const </div><div class="ttdef"><b>Definition:</b> <a href="subdivcontrolcurve_8cpp_source.html#l00123">subdivcontrolcurve.cpp:123</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_af644edd0d4ba993dbab280f036b37171"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#af644edd0d4ba993dbab280f036b37171">ShipCAD::SubdivisionSurface::addControlPoint</a></div><div class="ttdeci">SubdivisionControlPoint * addControlPoint(const QVector3D &amp;pt)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l00173">subdivsurface.cpp:173</a></div></div>
<div class="ttc" id="utility_8h_html"><div class="ttname"><a href="utility_8h.html">utility.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a7ab84a738b747c4fcb2c3627e56d4bd0"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a7ab84a738b747c4fcb2c3627e56d4bd0">ShipCAD::ShipCADModel::extents</a></div><div class="ttdeci">void extents(QVector3D &amp;min, QVector3D &amp;max)</div><div class="ttdoc">find the bounding box of the model </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00145">shipcadmodel.cpp:145</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionFace_html_abd79b6dfadd10befe94b524a34063b27"><div class="ttname"><a href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">ShipCAD::SubdivisionFace::numberOfPoints</a></div><div class="ttdeci">size_t numberOfPoints() const </div><div class="ttdoc">number of points for this face </div><div class="ttdef"><b>Definition:</b> <a href="subdivface_8h_source.html#l00122">subdivface.h:122</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_af3a6fa23a7318acbda7b0066b53d694f"><div class="ttname"><a href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694f">ShipCAD::version_t</a></div><div class="ttdeci">version_t</div><div class="ttdef"><b>Definition:</b> <a href="version_8h_source.html#l00039">version.h:39</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a7fb06b0a1fa75ef02597752fc3f691a2"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a7fb06b0a1fa75ef02597752fc3f691a2">ShipCAD::ShipCADModel::removeSelectedMarker</a></div><div class="ttdeci">void removeSelectedMarker(Marker *mark)</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01105">shipcadmodel.cpp:1105</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_ad3e49bc04c73dc221e48d15974b68f41"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#ad3e49bc04c73dc221e48d15974b68f41">ShipCAD::ShipCADModel::loadBinary</a></div><div class="ttdeci">void loadBinary(FileBuffer &amp;source)</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00928">shipcadmodel.cpp:928</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlPoint_html_a989c801ca1c836ca73f77c68d719f546"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlPoint.html#a989c801ca1c836ca73f77c68d719f546">ShipCAD::SubdivisionControlPoint::load_binary</a></div><div class="ttdeci">void load_binary(FileBuffer &amp;source)</div><div class="ttdef"><b>Definition:</b> <a href="subdivpoint_8cpp_source.html#l00777">subdivpoint.cpp:777</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_ac24d97adcdf1709fc8e857f5d07395ff"><div class="ttname"><a href="namespaceShipCAD.html#ac24d97adcdf1709fc8e857f5d07395ff">ShipCAD::ConvertDimension</a></div><div class="ttdeci">QString ConvertDimension(float value, unit_type_t units)</div><div class="ttdoc">create a string holding a dimension based on project units </div><div class="ttdef"><b>Definition:</b> <a href="utility_8cpp_source.html#l00664">utility.cpp:664</a></div></div>
<div class="ttc" id="classShipCAD_1_1Marker_html_af505b0f8f0aa9049fd65a7f9b675abbc"><div class="ttname"><a href="classShipCAD_1_1Marker.html#af505b0f8f0aa9049fd65a7f9b675abbc">ShipCAD::Marker::construct</a></div><div class="ttdeci">static Marker * construct(ShipCADModel *owner)</div><div class="ttdef"><b>Definition:</b> <a href="marker_8cpp_source.html#l00051">marker.cpp:51</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a9aa140f98f5f02a30743e2b9ce3d7d28"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a9aa140f98f5f02a30743e2b9ce3d7d28">ShipCAD::ShipCADModel::isFilenameSet</a></div><div class="ttdeci">bool isFilenameSet() const </div><div class="ttdoc">get flag for filename set </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8h_source.html#l00186">shipcadmodel.h:186</a></div></div>
<div class="ttc" id="classShipCAD_1_1Intersection_html_aed30bdca43037f72b85c4d53e234fd6c"><div class="ttname"><a href="classShipCAD_1_1Intersection.html#aed30bdca43037f72b85c4d53e234fd6c">ShipCAD::Intersection::rebuild</a></div><div class="ttdeci">virtual void rebuild()</div><div class="ttdef"><b>Definition:</b> <a href="intersection_8cpp_source.html#l00218">intersection.cpp:218</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a66144e3f3a53da01f51c9bdb94fcae31"><div class="ttname"><a href="namespaceShipCAD.html#a66144e3f3a53da01f51c9bdb94fcae31">ShipCAD::edit_mode_t</a></div><div class="ttdeci">edit_mode_t</div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00135">shipcadlib.h:135</a></div></div>
<div class="ttc" id="classShipCAD_1_1ProjectSettings_html_a8dc00d3f4528d369dbe5810382a98186"><div class="ttname"><a href="classShipCAD_1_1ProjectSettings.html#a8dc00d3f4528d369dbe5810382a98186">ShipCAD::ProjectSettings::isSavePreview</a></div><div class="ttdeci">bool isSavePreview() const </div><div class="ttdoc">get the Save Preview setting </div><div class="ttdef"><b>Definition:</b> <a href="projsettings_8h_source.html#l00094">projsettings.h:94</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a3605a409a102a18714e9ad7d028e7f33"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a3605a409a102a18714e9ad7d028e7f33">ShipCAD::SubdivisionSurface::setDrawMirror</a></div><div class="ttdeci">void setDrawMirror(bool val)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00337">subdivsurface.h:337</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a6941ad7a2b167419e844823fa8461019"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a6941ad7a2b167419e844823fa8461019">ShipCAD::ShipCADModel::getSurface</a></div><div class="ttdeci">SubdivisionSurface * getSurface()</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8h_source.html#l00071">shipcadmodel.h:71</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_aeeeb05810f2e31ef89fd4ac6b6ba9c0aa05a0a083efb18429cbb855b2dcbf5e18"><div class="ttname"><a href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aa05a0a083efb18429cbb855b2dcbf5e18">ShipCAD::fvProfile</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00072">shipcadlib.h:72</a></div></div>
<div class="ttc" id="classShipCAD_1_1FileBuffer_html_a66c14f8f21b9f77febd154aee9565f0b"><div class="ttname"><a href="classShipCAD_1_1FileBuffer.html#a66c14f8f21b9f77febd154aee9565f0b">ShipCAD::FileBuffer::setVersion</a></div><div class="ttdeci">void setVersion(version_t v)</div><div class="ttdef"><b>Definition:</b> <a href="filebuffer_8cpp_source.html#l00063">filebuffer.cpp:63</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_abf593b803e96a1fd8e56f36b3b6d0954"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#abf593b803e96a1fd8e56f36b3b6d0954">ShipCAD::ShipCADModel::draw</a></div><div class="ttdeci">void draw(Viewport &amp;vp)</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00680">shipcadmodel.cpp:680</a></div></div>
<div class="ttc" id="classShipCAD_1_1UndoObject_html_a93bad349f284a0ff1cece56aa931f9e3"><div class="ttname"><a href="classShipCAD_1_1UndoObject.html#a93bad349f284a0ff1cece56aa931f9e3">ShipCAD::UndoObject::accept</a></div><div class="ttdeci">void accept()</div><div class="ttdef"><b>Definition:</b> <a href="undoobject_8cpp_source.html#l00053">undoobject.cpp:53</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_abbf1284012e5a2b433dbcf1ac2caaf84"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#abbf1284012e5a2b433dbcf1ac2caaf84">ShipCAD::SubdivisionSurface::tempChangeMirror</a></div><div class="ttdeci">TempVarChange&lt; bool &gt; tempChangeMirror(bool val)</div><div class="ttdoc">temporarily change draw mirror </div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00393">subdivsurface.h:393</a></div></div>
<div class="ttc" id="classShipCAD_1_1Visibility_html"><div class="ttname"><a href="classShipCAD_1_1Visibility.html">ShipCAD::Visibility</a></div><div class="ttdoc">Settings for visibility of different features. </div><div class="ttdef"><b>Definition:</b> <a href="visibility_8h_source.html#l00049">visibility.h:49</a></div></div>
<div class="ttc" id="classShipCAD_1_1Visibility_html_a36f2e03d75a5a2cfcfc3c637c08bee92"><div class="ttname"><a href="classShipCAD_1_1Visibility.html#a36f2e03d75a5a2cfcfc3c637c08bee92">ShipCAD::Visibility::isShowCurvature</a></div><div class="ttdeci">bool isShowCurvature() const </div><div class="ttdoc">show visibility of curvature </div><div class="ttdef"><b>Definition:</b> <a href="visibility_8h_source.html#l00108">visibility.h:108</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_aeeeb05810f2e31ef89fd4ac6b6ba9c0aab67fb04b0624572e1567bff4caefde27"><div class="ttname"><a href="namespaceShipCAD.html#aeeeb05810f2e31ef89fd4ac6b6ba9c0aab67fb04b0624572e1567bff4caefde27">ShipCAD::fvPlan</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00073">shipcadlib.h:73</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_acfe9cc964dbe05105486b43f2dc6fc4f"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#acfe9cc964dbe05105486b43f2dc6fc4f">ShipCAD::SubdivisionSurface::draw</a></div><div class="ttdeci">virtual void draw(Viewport &amp;vp)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l02575">subdivsurface.cpp:2575</a></div></div>
<div class="ttc" id="classShipCAD_1_1LineShader_html"><div class="ttname"><a href="classShipCAD_1_1LineShader.html">ShipCAD::LineShader</a></div><div class="ttdef"><b>Definition:</b> <a href="shader_8h_source.html#l00075">shader.h:75</a></div></div>
<div class="ttc" id="structdraw__intersection_html_a3515516eb4ac321e9a1323140b9f47b0"><div class="ttname"><a href="structdraw__intersection.html#a3515516eb4ac321e9a1323140b9f47b0">draw_intersection::operator()</a></div><div class="ttdeci">void operator()(Intersection *itsection)</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00673">shipcadmodel.cpp:673</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionEdge_html_aa6e28532f3ecc1610813844dfb385deb"><div class="ttname"><a href="classShipCAD_1_1SubdivisionEdge.html#aa6e28532f3ecc1610813844dfb385deb">ShipCAD::SubdivisionEdge::startPoint</a></div><div class="ttdeci">SubdivisionPoint * startPoint() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivedge_8h_source.html#l00075">subdivedge.h:75</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a6461e4d91e555f0c732b53f8998b325d"><div class="ttname"><a href="namespaceShipCAD.html#a6461e4d91e555f0c732b53f8998b325d">ShipCAD::kFileExtension</a></div><div class="ttdeci">const char * kFileExtension</div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8cpp_source.html#l00035">shipcadlib.cpp:35</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a5bf8f452664e17dae636d4b66a66eba9"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a5bf8f452664e17dae636d4b66a66eba9">ShipCAD::SubdivisionSurface::addNewLayer</a></div><div class="ttdeci">SubdivisionLayer * addNewLayer()</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l00258">subdivsurface.cpp:258</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a73494d53c57b4401f59f3feb3d73941b"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a73494d53c57b4401f59f3feb3d73941b">ShipCAD::ShipCADModel::addFlowline</a></div><div class="ttdeci">Flowline * addFlowline(const QVector2D &amp;pt, viewport_type_t ty)</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01127">shipcadmodel.cpp:1127</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlPoint_html_a54a5233e02ef34a174c24d5dcf3c6407"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlPoint.html#a54a5233e02ef34a174c24d5dcf3c6407">ShipCAD::SubdivisionControlPoint::setCoordinate</a></div><div class="ttdeci">virtual void setCoordinate(const QVector3D &amp;val)</div><div class="ttdef"><b>Definition:</b> <a href="subdivpoint_8cpp_source.html#l00635">subdivpoint.cpp:635</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlCurve_html_a21d9226cc2fd7efcaf6f1067912a0b34"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlCurve.html#a21d9226cc2fd7efcaf6f1067912a0b34">ShipCAD::SubdivisionControlCurve::construct</a></div><div class="ttdeci">static SubdivisionControlCurve * construct(SubdivisionSurface *owner)</div><div class="ttdef"><b>Definition:</b> <a href="subdivcontrolcurve_8cpp_source.html#l00049">subdivcontrolcurve.cpp:49</a></div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html_aa471e8916034ea3e11c1feb9c8bb935b"><div class="ttname"><a href="classShipCAD_1_1Spline.html#aa471e8916034ea3e11c1feb9c8bb935b">ShipCAD::Spline::isKnuckle</a></div><div class="ttdeci">bool isKnuckle(size_t index) const </div><div class="ttdef"><b>Definition:</b> <a href="spline_8h_source.html#l00154">spline.h:154</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionLayer_html"><div class="ttname"><a href="classShipCAD_1_1SubdivisionLayer.html">ShipCAD::SubdivisionLayer</a></div><div class="ttdoc">Layer, collection of SubdivisionControlFaces. </div><div class="ttdef"><b>Definition:</b> <a href="subdivlayer_8h_source.html#l00061">subdivlayer.h:61</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionEdge_html_ae649fe7169f64a8e5ede1fbb36a176fa"><div class="ttname"><a href="classShipCAD_1_1SubdivisionEdge.html#ae649fe7169f64a8e5ede1fbb36a176fa">ShipCAD::SubdivisionEdge::isCrease</a></div><div class="ttdeci">bool isCrease() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivedge_8h_source.html#l00081">subdivedge.h:81</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_af3a6fa23a7318acbda7b0066b53d694fa155bf0424294686430a251fed7e7cb83"><div class="ttname"><a href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694fa155bf0424294686430a251fed7e7cb83">ShipCAD::fv191</a></div><div class="ttdef"><b>Definition:</b> <a href="version_8h_source.html#l00051">version.h:51</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a67437198ee14f74e6c5277d761894863aaf20984128d2e9697958fa8c329a801a"><div class="ttname"><a href="namespaceShipCAD.html#a67437198ee14f74e6c5277d761894863aaf20984128d2e9697958fa8c329a801a">ShipCAD::vmShadeGauss</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00065">shipcadlib.h:65</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionLayer_html_a0f334fb0ec1774fbff8d60aa8a9b6889"><div class="ttname"><a href="classShipCAD_1_1SubdivisionLayer.html#a0f334fb0ec1774fbff8d60aa8a9b6889">ShipCAD::SubdivisionLayer::getLayerID</a></div><div class="ttdeci">size_t getLayerID() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivlayer_8h_source.html#l00096">subdivlayer.h:96</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a5a4e5acd1bfc4d845d28513dd2dbc0cd"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a5a4e5acd1bfc4d845d28513dd2dbc0cd">ShipCAD::SubdivisionSurface::setShowInteriorEdges</a></div><div class="ttdeci">void setShowInteriorEdges(bool val)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00336">subdivsurface.h:336</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_ae13c7e36dfb1e2300741a631041cd915a0ea3ca30ae42b68a60d3a4cd4d08fa17"><div class="ttname"><a href="namespaceShipCAD.html#ae13c7e36dfb1e2300741a631041cd915a0ea3ca30ae42b68a60d3a4cd4d08fa17">ShipCAD::fpHigh</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00131">shipcadlib.h:131</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_ae13c7e36dfb1e2300741a631041cd915af3fadd404d6708aa5759c5c33df67abb"><div class="ttname"><a href="namespaceShipCAD.html#ae13c7e36dfb1e2300741a631041cd915af3fadd404d6708aa5759c5c33df67abb">ShipCAD::fpMedium</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00130">shipcadlib.h:130</a></div></div>
<div class="ttc" id="classShipCAD_1_1Viewport_html_aab16013a5098f23f3f1bb9d4318c3d3b"><div class="ttname"><a href="classShipCAD_1_1Viewport.html#aab16013a5098f23f3f1bb9d4318c3d3b">ShipCAD::Viewport::convert3D</a></div><div class="ttdeci">QPoint convert3D(const QVector3D &amp;pt) const </div><div class="ttdef"><b>Definition:</b> <a href="viewport_8cpp_source.html#l00173">viewport.cpp:173</a></div></div>
<div class="ttc" id="classShipCAD_1_1Marker_html"><div class="ttname"><a href="classShipCAD_1_1Marker.html">ShipCAD::Marker</a></div><div class="ttdef"><b>Definition:</b> <a href="marker_8h_source.html#l00048">marker.h:48</a></div></div>
<div class="ttc" id="classShipCAD_1_1Viewport_html_a205e5082395c6d01660ffc179c57b83e"><div class="ttname"><a href="classShipCAD_1_1Viewport.html#a205e5082395c6d01660ffc179c57b83e">ShipCAD::Viewport::getViewportMode</a></div><div class="ttdeci">viewport_mode_t getViewportMode() const </div><div class="ttdef"><b>Definition:</b> <a href="viewport_8h_source.html#l00095">viewport.h:95</a></div></div>
<div class="ttc" id="classShipCAD_1_1Plane_html_a7755d7967aae2e083c5d08fed49d9eef"><div class="ttname"><a href="classShipCAD_1_1Plane.html#a7755d7967aae2e083c5d08fed49d9eef">ShipCAD::Plane::d</a></div><div class="ttdeci">float d() const </div><div class="ttdef"><b>Definition:</b> <a href="plane_8h_source.html#l00056">plane.h:56</a></div></div>
<div class="ttc" id="shipcadmodel_8h_html"><div class="ttname"><a href="shipcadmodel_8h.html">shipcadmodel.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_ad4f874132a137e89a39e60572748dab0"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#ad4f874132a137e89a39e60572748dab0">ShipCAD::SubdivisionSurface::deleteControlPoint</a></div><div class="ttdeci">void deleteControlPoint(SubdivisionControlPoint *point)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l00236">subdivsurface.cpp:236</a></div></div>
<div class="ttc" id="classShipCAD_1_1Plane_html"><div class="ttname"><a href="classShipCAD_1_1Plane.html">ShipCAD::Plane</a></div><div class="ttdef"><b>Definition:</b> <a href="plane_8h_source.html#l00039">plane.h:39</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_af3a6fa23a7318acbda7b0066b53d694fa528cae12d19cf6d3b76e6f2b6ef25a61"><div class="ttname"><a href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694fa528cae12d19cf6d3b76e6f2b6ef25a61">ShipCAD::fv250</a></div><div class="ttdef"><b>Definition:</b> <a href="version_8h_source.html#l00060">version.h:60</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_ae8fe6d69df313f7459235de1a0614e8c"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#ae8fe6d69df313f7459235de1a0614e8c">ShipCAD::ShipCADModel::setFileChanged</a></div><div class="ttdeci">void setFileChanged(bool changed)</div><div class="ttdoc">set file changed flag </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8h_source.html#l00249">shipcadmodel.h:249</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_aa56834b730aafdf2786ddc9a60a046fda8e5e5dc412191234863fae2f98709477"><div class="ttname"><a href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fda8e5e5dc412191234863fae2f98709477">ShipCAD::fiFree</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00111">shipcadlib.h:111</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a19864f7628c596553f7c89247715b10a"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a19864f7628c596553f7c89247715b10a">ShipCAD::ShipCADModel::getDiagonals</a></div><div class="ttdeci">IntersectionVector &amp; getDiagonals()</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8h_source.html#l00157">shipcadmodel.h:157</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionLayer_html_ad6cbb87ecaadd6c31635fb86fe1a4b13"><div class="ttname"><a href="classShipCAD_1_1SubdivisionLayer.html#ad6cbb87ecaadd6c31635fb86fe1a4b13">ShipCAD::SubdivisionLayer::setLayerID</a></div><div class="ttdeci">void setLayerID(size_t newid)</div><div class="ttdef"><b>Definition:</b> <a href="subdivlayer_8h_source.html#l00098">subdivlayer.h:98</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_aa56834b730aafdf2786ddc9a60a046fda5631b7711c628bad5c561953eaac2863"><div class="ttname"><a href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fda5631b7711c628bad5c561953eaac2863">ShipCAD::fiDiagonal</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00115">shipcadlib.h:115</a></div></div>
<div class="ttc" id="structdraw__intersection_html_a5f59d55f5e41a2585af4fea6a4d93374"><div class="ttname"><a href="structdraw__intersection.html#a5f59d55f5e41a2585af4fea6a4d93374">draw_intersection::_ls</a></div><div class="ttdeci">LineShader * _ls</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00669">shipcadmodel.cpp:669</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_aa56834b730aafdf2786ddc9a60a046fdaf57b8e7252f2c55c001df410276926e3"><div class="ttname"><a href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fdaf57b8e7252f2c55c001df410276926e3">ShipCAD::fiStation</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00112">shipcadlib.h:112</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a011480014cfb68430c9f60aff474936c"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a011480014cfb68430c9f60aff474936c">ShipCAD::SubdivisionSurface::numberOfLayers</a></div><div class="ttdeci">size_t numberOfLayers() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00285">subdivsurface.h:285</a></div></div>
<div class="ttc" id="structShipCAD_1_1CPointGrid_html_abe0f101bc5c9fb6e9ba8008cae0e1637"><div class="ttname"><a href="structShipCAD_1_1CPointGrid.html#abe0f101bc5c9fb6e9ba8008cae0e1637">ShipCAD::CPointGrid::setCols</a></div><div class="ttdeci">void setCols(size_t cols)</div><div class="ttdef"><b>Definition:</b> <a href="pointgrid_8h_source.html#l00082">pointgrid.h:82</a></div></div>
<div class="ttc" id="classPointerVector_html_abaee9f77dee6ea2523dff64b184c9f54"><div class="ttname"><a href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">PointerVector::add</a></div><div class="ttdeci">void add(T *elem)</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00072">pointervec.h:72</a></div></div>
<div class="ttc" id="classShipCAD_1_1Visibility_html_af3e925196f71caa8e8ddabd2e7210bbf"><div class="ttname"><a href="classShipCAD_1_1Visibility.html#af3e925196f71caa8e8ddabd2e7210bbf">ShipCAD::Visibility::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdef"><b>Definition:</b> <a href="visibility_8cpp_source.html#l00042">visibility.cpp:42</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_aa56834b730aafdf2786ddc9a60a046fd"><div class="ttname"><a href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fd">ShipCAD::intersection_type_t</a></div><div class="ttdeci">intersection_type_t</div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00110">shipcadlib.h:110</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_aa56834b730aafdf2786ddc9a60a046fdabcf8818401977200b532a1e18ec2df70"><div class="ttname"><a href="namespaceShipCAD.html#aa56834b730aafdf2786ddc9a60a046fdabcf8818401977200b532a1e18ec2df70">ShipCAD::fiButtock</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00113">shipcadlib.h:113</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a362b063921c6441d8e91935226062ed5"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a362b063921c6441d8e91935226062ed5">ShipCAD::SubdivisionSurface::deleteSelected</a></div><div class="ttdeci">void deleteSelected()</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l03552">subdivsurface.cpp:3552</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionLayer_html_a060357b84c0549fa7310e45680fed9bd"><div class="ttname"><a href="classShipCAD_1_1SubdivisionLayer.html#a060357b84c0549fa7310e45680fed9bd">ShipCAD::SubdivisionLayer::loadBinary</a></div><div class="ttdeci">void loadBinary(FileBuffer &amp;source)</div><div class="ttdef"><b>Definition:</b> <a href="subdivlayer_8cpp_source.html#l00604">subdivlayer.cpp:604</a></div></div>
<div class="ttc" id="namespaceShipCAD_html"><div class="ttname"><a href="namespaceShipCAD.html">ShipCAD</a></div><div class="ttdef"><b>Definition:</b> <a href="backgroundimage_8h_source.html#l00039">backgroundimage.h:39</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_aa01ccc2ce7417960ca13075e38eb98e6"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#aa01ccc2ce7417960ca13075e38eb98e6">ShipCAD::SubdivisionSurface::addControlCurve</a></div><div class="ttdeci">void addControlCurve(SubdivisionControlCurve *curve)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l01573">subdivsurface.cpp:1573</a></div></div>
<div class="ttc" id="classShipCAD_1_1BackgroundImage_html"><div class="ttname"><a href="classShipCAD_1_1BackgroundImage.html">ShipCAD::BackgroundImage</a></div><div class="ttdoc">Background Images for a viewport. </div><div class="ttdef"><b>Definition:</b> <a href="backgroundimage_8h_source.html#l00049">backgroundimage.h:49</a></div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html"><div class="ttname"><a href="classShipCAD_1_1Spline.html">ShipCAD::Spline</a></div><div class="ttdoc">spline entity used in intersections etc </div><div class="ttdef"><b>Definition:</b> <a href="spline_8h_source.html#l00053">spline.h:53</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a860a91c09307c71f738a75aec159e6d0"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a860a91c09307c71f738a75aec159e6d0">ShipCAD::ShipCADModel::importChines</a></div><div class="ttdeci">void importChines(size_t np, SplineVector &amp;chines)</div><div class="ttdoc">imports chines and creates developable surface </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01609">shipcadmodel.cpp:1609</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a636a331e17c59db296527d1aca0ad01d"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a636a331e17c59db296527d1aca0ad01d">ShipCAD::ShipCADModel::getEditMode</a></div><div class="ttdeci">edit_mode_t getEditMode() const </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8h_source.html#l00159">shipcadmodel.h:159</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlCurve_html"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlCurve.html">ShipCAD::SubdivisionControlCurve</a></div><div class="ttdef"><b>Definition:</b> <a href="subdivcontrolcurve_8h_source.html#l00056">subdivcontrolcurve.h:56</a></div></div>
<div class="ttc" id="classShipCAD_1_1Preferences_html_af474c1924b33adccb7299a95a768d610"><div class="ttname"><a href="classShipCAD_1_1Preferences.html#af474c1924b33adccb7299a95a768d610">ShipCAD::Preferences::getPointSize</a></div><div class="ttdeci">int getPointSize() const </div><div class="ttdoc">get point size </div><div class="ttdef"><b>Definition:</b> <a href="preferences_8h_source.html#l00073">preferences.h:73</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionPoint_html_a285325115089a1b99be4480bf6079bf1"><div class="ttname"><a href="classShipCAD_1_1SubdivisionPoint.html#a285325115089a1b99be4480bf6079bf1">ShipCAD::SubdivisionPoint::getCoordinate</a></div><div class="ttdeci">QVector3D getCoordinate() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivpoint_8h_source.html#l00140">subdivpoint.h:140</a></div></div>
<div class="ttc" id="structdraw__intersection_html_a4471bc736f3a58dc15f577144772601b"><div class="ttname"><a href="structdraw__intersection.html#a4471bc736f3a58dc15f577144772601b">draw_intersection::draw_intersection</a></div><div class="ttdeci">draw_intersection(Viewport &amp;vp, LineShader *lineshader)</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00670">shipcadmodel.cpp:670</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a13cfd2714344c9b85aad8d123538db48"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a13cfd2714344c9b85aad8d123538db48">ShipCAD::SubdivisionSurface::initialize</a></div><div class="ttdeci">void initialize(size_t point_start, size_t edge_start)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l02977">subdivsurface.cpp:2977</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a2636160d900b8d8b00802ae78ee87925"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a2636160d900b8d8b00802ae78ee87925">ShipCAD::ShipCADModel::setEditMode</a></div><div class="ttdeci">void setEditMode(edit_mode_t mode)</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00232">shipcadmodel.cpp:232</a></div></div>
<div class="ttc" id="structShipCAD_1_1CPointGrid_html_a43adcefcb3e233be4f565e633382062d"><div class="ttname"><a href="structShipCAD_1_1CPointGrid.html#a43adcefcb3e233be4f565e633382062d">ShipCAD::CPointGrid::setRows</a></div><div class="ttdeci">void setRows(size_t rows)</div><div class="ttdef"><b>Definition:</b> <a href="pointgrid_8h_source.html#l00077">pointgrid.h:77</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a71eed6b40f7bdf66144b4e8320f99b37"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a71eed6b40f7bdf66144b4e8320f99b37">ShipCAD::SubdivisionSurface::numberOfSelectedControlFaces</a></div><div class="ttdeci">size_t numberOfSelectedControlFaces() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00262">subdivsurface.h:262</a></div></div>
<div class="ttc" id="classShipCAD_1_1HydrostaticCalc_html_a3e1579cbcaddec517cfa95faa2228f2c"><div class="ttname"><a href="classShipCAD_1_1HydrostaticCalc.html#a3e1579cbcaddec517cfa95faa2228f2c">ShipCAD::HydrostaticCalc::getDraft</a></div><div class="ttdeci">float getDraft() const </div><div class="ttdef"><b>Definition:</b> <a href="hydrostaticcalc_8h_source.html#l00132">hydrostaticcalc.h:132</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html">ShipCAD::SubdivisionSurface</a></div><div class="ttdoc">Subdivision Surface. </div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00103">subdivsurface.h:103</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_ac8a3a46ed5864f651495bd450d11ef2a"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#ac8a3a46ed5864f651495bd450d11ef2a">ShipCAD::ShipCADModel::clearUndo</a></div><div class="ttdeci">void clearUndo()</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l00452">shipcadmodel.cpp:452</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionEdge_html_aa65e2e10929c52fd05b6bb90317977dc"><div class="ttname"><a href="classShipCAD_1_1SubdivisionEdge.html#aa65e2e10929c52fd05b6bb90317977dc">ShipCAD::SubdivisionEdge::endPoint</a></div><div class="ttdeci">SubdivisionPoint * endPoint() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivedge_8h_source.html#l00076">subdivedge.h:76</a></div></div>
<div class="ttc" id="classShipCAD_1_1Intersection_html_a0092acbb149bb6a5c2e1f9a4b300c2da"><div class="ttname"><a href="classShipCAD_1_1Intersection.html#a0092acbb149bb6a5c2e1f9a4b300c2da">ShipCAD::Intersection::getSplines</a></div><div class="ttdeci">SplineVector &amp; getSplines()</div><div class="ttdef"><b>Definition:</b> <a href="intersection_8h_source.html#l00113">intersection.h:113</a></div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html_a3e3e7413b8ca8383a93f4770931ed6ed"><div class="ttname"><a href="classShipCAD_1_1Spline.html#a3e3e7413b8ca8383a93f4770931ed6ed">ShipCAD::Spline::getLastPoint</a></div><div class="ttdeci">QVector3D getLastPoint() const </div><div class="ttdef"><b>Definition:</b> <a href="spline_8h_source.html#l00148">spline.h:148</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a6a89be4440e3adfcb0b14c164db891ae"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a6a89be4440e3adfcb0b14c164db891ae">ShipCAD::SubdivisionSurface::controlEdgeExists</a></div><div class="ttdeci">SubdivisionControlEdge * controlEdgeExists(SubdivisionPoint *p1, SubdivisionPoint *p2)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l02628">subdivsurface.cpp:2628</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a742f9cd95e62e207769e17467ecd5bb7ad45c94ca5dea7f967d58f9864f49c465"><div class="ttname"><a href="namespaceShipCAD.html#a742f9cd95e62e207769e17467ecd5bb7ad45c94ca5dea7f967d58f9864f49c465">ShipCAD::mvBoth</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00158">shipcadlib.h:158</a></div></div>
<div class="ttc" id="classShipCAD_1_1Intersection_html_a3e87aa28a1e1d721fe657a73d5466f3b"><div class="ttname"><a href="classShipCAD_1_1Intersection.html#a3e87aa28a1e1d721fe657a73d5466f3b">ShipCAD::Intersection::loadBinary</a></div><div class="ttdeci">void loadBinary(FileBuffer &amp;source)</div><div class="ttdef"><b>Definition:</b> <a href="intersection_8cpp_source.html#l00453">intersection.cpp:453</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_ae063d1a2be4e227aaefb8a3578d3f52f"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#ae063d1a2be4e227aaefb8a3578d3f52f">ShipCAD::SubdivisionSurface::setWaterlinePlane</a></div><div class="ttdeci">void setWaterlinePlane(const Plane &amp;val)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00315">subdivsurface.h:315</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_ac7fd2d6607f589a20444f3efb8fde63b"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#ac7fd2d6607f589a20444f3efb8fde63b">ShipCAD::ShipCADModel::addMarker</a></div><div class="ttdeci">Marker * addMarker()</div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01114">shipcadmodel.cpp:1114</a></div></div>
<div class="ttc" id="structShipCAD_1_1KAPERResistance_html"><div class="ttname"><a href="structShipCAD_1_1KAPERResistance.html">ShipCAD::KAPERResistance</a></div><div class="ttdef"><b>Definition:</b> <a href="resistance_8h_source.html#l00070">resistance.h:70</a></div></div>
<div class="ttc" id="classShipCAD_1_1Visibility_html_a34d56f9e9467b9749c6b50adfe8a0493"><div class="ttname"><a href="classShipCAD_1_1Visibility.html#a34d56f9e9467b9749c6b50adfe8a0493">ShipCAD::Visibility::getModelView</a></div><div class="ttdeci">model_view_t getModelView() const </div><div class="ttdoc">get model view setting </div><div class="ttdef"><b>Definition:</b> <a href="visibility_8h_source.html#l00152">visibility.h:152</a></div></div>
<div class="ttc" id="classShipCAD_1_1ProjectSettings_html_a989e357d35af68ac2da9b0e760926308"><div class="ttname"><a href="classShipCAD_1_1ProjectSettings.html#a989e357d35af68ac2da9b0e760926308">ShipCAD::ProjectSettings::getLength</a></div><div class="ttdeci">float getLength()</div><div class="ttdef"><b>Definition:</b> <a href="projsettings_8h_source.html#l00078">projsettings.h:78</a></div></div>
<div class="ttc" id="classShipCAD_1_1Visibility_html_a177cc880657723c1cbcc4c66c16ee208"><div class="ttname"><a href="classShipCAD_1_1Visibility.html#a177cc880657723c1cbcc4c66c16ee208">ShipCAD::Visibility::isShowControlNet</a></div><div class="ttdeci">bool isShowControlNet() const </div><div class="ttdoc">is control net shown </div><div class="ttdef"><b>Definition:</b> <a href="visibility_8h_source.html#l00097">visibility.h:97</a></div></div>
<div class="ttc" id="classShipCAD_1_1ShipCADModel_html_a7777da02744250aebce9be35063ba0f5"><div class="ttname"><a href="classShipCAD_1_1ShipCADModel.html#a7777da02744250aebce9be35063ba0f5">ShipCAD::ShipCADModel::deleteFlowline</a></div><div class="ttdeci">void deleteFlowline(Flowline *flow)</div><div class="ttdoc">delete a flowline from the model </div><div class="ttdef"><b>Definition:</b> <a href="shipcadmodel_8cpp_source.html#l01158">shipcadmodel.cpp:1158</a></div></div>
<div class="ttc" id="classShipCAD_1_1Marker_html_a0f2aa7cd6bae40784c077b89d5ebdb50"><div class="ttname"><a href="classShipCAD_1_1Marker.html#a0f2aa7cd6bae40784c077b89d5ebdb50">ShipCAD::Marker::loadBinary</a></div><div class="ttdeci">void loadBinary(FileBuffer &amp;source)</div><div class="ttdef"><b>Definition:</b> <a href="marker_8cpp_source.html#l00168">marker.cpp:168</a></div></div>
<div class="ttc" id="classShipCAD_1_1Visibility_html_a973f63d7828898c1499607a8d87b430d"><div class="ttname"><a href="classShipCAD_1_1Visibility.html#a973f63d7828898c1499607a8d87b430d">ShipCAD::Visibility::isShowNormals</a></div><div class="ttdeci">bool isShowNormals() const </div><div class="ttdoc">show visibility of normals </div><div class="ttdef"><b>Definition:</b> <a href="visibility_8h_source.html#l00185">visibility.h:185</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_af3a6fa23a7318acbda7b0066b53d694fa067802fee608eba024414f07e484bd69"><div class="ttname"><a href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694fa067802fee608eba024414f07e484bd69">ShipCAD::fv210</a></div><div class="ttdef"><b>Definition:</b> <a href="version_8h_source.html#l00056">version.h:56</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_a61fb5c6ccba4c5491ddcc69182213831"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#a61fb5c6ccba4c5491ddcc69182213831">ShipCAD::SubdivisionSurface::getMaxGausCurvature</a></div><div class="ttdeci">float getMaxGausCurvature() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8h_source.html#l00311">subdivsurface.h:311</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Feb 25 2018 15:36:00 for ShipCAD by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
